~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/xfs/xfs_inode_item.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0
  2 /*
  3  * Copyright (c) 2000,2005 Silicon Graphics, Inc.
  4  * All Rights Reserved.
  5  */
  6 #ifndef __XFS_INODE_ITEM_H__
  7 #define __XFS_INODE_ITEM_H__
  8 
  9 /* kernel only definitions */
 10 
 11 struct xfs_buf;
 12 struct xfs_bmbt_rec;
 13 struct xfs_inode;
 14 struct xfs_mount;
 15 
 16 struct xfs_inode_log_item {
 17         struct xfs_log_item     ili_item;          /* common portion */
 18         struct xfs_inode        *ili_inode;        /* inode ptr */
 19         unsigned short          ili_lock_flags;    /* inode lock flags */
 20         unsigned int            ili_dirty_flags;   /* dirty in current tx */
 21         /*
 22          * The ili_lock protects the interactions between the dirty state and
 23          * the flush state of the inode log item. This allows us to do atomic
 24          * modifications of multiple state fields without having to hold a
 25          * specific inode lock to serialise them.
 26          *
 27          * We need atomic changes between inode dirtying, inode flushing and
 28          * inode completion, but these all hold different combinations of
 29          * ILOCK and IFLUSHING and hence we need some other method of
 30          * serialising updates to the flush state.
 31          */
 32         spinlock_t              ili_lock;          /* flush state lock */
 33         unsigned int            ili_last_fields;   /* fields when flushed */
 34         unsigned int            ili_fields;        /* fields to be logged */
 35         unsigned int            ili_fsync_fields;  /* logged since last fsync */
 36         xfs_lsn_t               ili_flush_lsn;     /* lsn at last flush */
 37         xfs_csn_t               ili_commit_seq;    /* last transaction commit */
 38 };
 39 
 40 static inline int xfs_inode_clean(struct xfs_inode *ip)
 41 {
 42         return !ip->i_itemp || !(ip->i_itemp->ili_fields & XFS_ILOG_ALL);
 43 }
 44 
 45 extern void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *);
 46 extern void xfs_inode_item_destroy(struct xfs_inode *);
 47 extern void xfs_iflush_abort(struct xfs_inode *);
 48 extern void xfs_iflush_shutdown_abort(struct xfs_inode *);
 49 extern int xfs_inode_item_format_convert(xfs_log_iovec_t *,
 50                                          struct xfs_inode_log_format *);
 51 
 52 extern struct kmem_cache        *xfs_ili_cache;
 53 
 54 #endif  /* __XFS_INODE_ITEM_H__ */
 55 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php