/* Only valid if the inode is the dir. */
u32 ip_last_used_slot;
u64 ip_last_used_group;
u32 ip_dir_lock_gen;
struct ocfs2_alloc_reservation ip_la_data_resv;
/* * Transactions that contain inode's metadata needed to complete * fsync and fdatasync, respectively.
*/
tid_t i_sync_tid;
tid_t i_datasync_tid;
struct dquot __rcu *i_dquot[MAXQUOTAS];
};
/* * Flags for the ip_flags field
*/ /* System file inodes */ #define OCFS2_INODE_SYSTEM_FILE 0x00000001 #define OCFS2_INODE_JOURNAL 0x00000002 #define OCFS2_INODE_BITMAP 0x00000004 /* This inode has been wiped from disk */ #define OCFS2_INODE_DELETED 0x00000008 /* Has the inode been orphaned on another node? * * This hints to ocfs2_drop_inode that it should clear i_nlink before * continuing. * * We *only* set this on unlink vote from another node. If the inode * was locally orphaned, then we're sure of the state and don't need * to twiddle i_nlink later - it's either zero or not depending on * whether our unlink succeeded. Otherwise we got this from a node * whose intention was to orphan the inode, however he may have * crashed, failed etc, so we let ocfs2_drop_inode zero the value and * rely on ocfs2_delete_inode to sort things out under the proper * cluster locks.
*/ #define OCFS2_INODE_MAYBE_ORPHANED 0x00000010 /* Does someone have the file open O_DIRECT */ #define OCFS2_INODE_OPEN_DIRECT 0x00000020 /* Tell the inode wipe code it's not in orphan dir */ #define OCFS2_INODE_SKIP_ORPHAN_DIR 0x00000040 /* Entry in orphan dir with 'dio-' prefix */ #define OCFS2_INODE_DIO_ORPHAN_ENTRY 0x00000080
/* Validate that a bh contains a valid inode */ int ocfs2_validate_inode_block(struct super_block *sb, struct buffer_head *bh); /* * Read an inode block into *bh. If *bh is NULL, a bh will be allocated. * This is a cached read. The inode will be validated with * ocfs2_validate_inode_block().
*/ int ocfs2_read_inode_block(struct inode *inode, struct buffer_head **bh); /* The same, but can be passed OCFS2_BH_* flags */ int ocfs2_read_inode_block_full(struct inode *inode, struct buffer_head **bh, int flags);
/* Does this inode have the reflink flag set? */ staticinlinebool ocfs2_is_refcount_inode(struct inode *inode)
{ return (OCFS2_I(inode)->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL);
}
#endif/* OCFS2_INODE_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.