diff options
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r-- | fs/btrfs/btrfs_inode.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 3bf40591742a..b7bd60e4fdd7 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h | |||
@@ -43,6 +43,21 @@ struct btrfs_inode { | |||
43 | u64 delalloc_bytes; | 43 | u64 delalloc_bytes; |
44 | u64 disk_i_size; | 44 | u64 disk_i_size; |
45 | u32 flags; | 45 | u32 flags; |
46 | |||
47 | /* | ||
48 | * if this is a directory then index_cnt is the counter for the index | ||
49 | * number for new files that are created | ||
50 | */ | ||
51 | u64 index_cnt; | ||
52 | |||
53 | /* | ||
54 | * index holds the directory index for this inode on creation, so | ||
55 | * add_link can do what its supposed to. This isn't populated when the | ||
56 | * inode is read because there isn't really a reason to know this unless | ||
57 | * we are creating the directory index or deleting it, and deletion | ||
58 | * reads the index off of the inode reference at unlink time. | ||
59 | */ | ||
60 | u64 index; | ||
46 | }; | 61 | }; |
47 | 62 | ||
48 | static inline struct btrfs_inode *BTRFS_I(struct inode *inode) | 63 | static inline struct btrfs_inode *BTRFS_I(struct inode *inode) |