struct extent_io_tree io_failure_tree;
struct mutex csum_mutex;
struct mutex extent_mutex;
+ struct mutex log_mutex;
struct inode vfs_inode;
struct btrfs_ordered_inode_tree ordered_tree;
struct list_head delalloc_inodes;
+ /* full 64 bit generation number */
+ u64 generation;
+
/*
* transid of the trans_handle that last modified this inode
*/
u64 last_trans;
+ /*
+ * transid that last logged this inode
+ */
+ u64 logged_trans;
u64 delalloc_bytes;
u64 disk_i_size;
u32 flags;
* number for new files that are created
*/
u64 index_cnt;
-
- /*
- * index holds the directory index for this inode on creation, so
- * add_link can do what its supposed to. This isn't populated when the
- * inode is read because there isn't really a reason to know this unless
- * we are creating the directory index or deleting it, and deletion
- * reads the index off of the inode reference at unlink time.
- */
- u64 index;
};
static inline struct btrfs_inode *BTRFS_I(struct inode *inode)