diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 8566eb30f567..50fbcc9ec45f 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -411,7 +411,7 @@ struct btrfs_inode_item { | |||
411 | /* transid that last touched this inode */ | 411 | /* transid that last touched this inode */ |
412 | __le64 transid; | 412 | __le64 transid; |
413 | __le64 size; | 413 | __le64 size; |
414 | __le64 nblocks; | 414 | __le64 nbytes; |
415 | __le64 block_group; | 415 | __le64 block_group; |
416 | __le32 nlink; | 416 | __le32 nlink; |
417 | __le32 uid; | 417 | __le32 uid; |
@@ -1017,7 +1017,7 @@ BTRFS_SETGET_FUNCS(inode_ref_index, struct btrfs_inode_ref, index, 64); | |||
1017 | BTRFS_SETGET_FUNCS(inode_generation, struct btrfs_inode_item, generation, 64); | 1017 | BTRFS_SETGET_FUNCS(inode_generation, struct btrfs_inode_item, generation, 64); |
1018 | BTRFS_SETGET_FUNCS(inode_transid, struct btrfs_inode_item, transid, 64); | 1018 | BTRFS_SETGET_FUNCS(inode_transid, struct btrfs_inode_item, transid, 64); |
1019 | BTRFS_SETGET_FUNCS(inode_size, struct btrfs_inode_item, size, 64); | 1019 | BTRFS_SETGET_FUNCS(inode_size, struct btrfs_inode_item, size, 64); |
1020 | BTRFS_SETGET_FUNCS(inode_nblocks, struct btrfs_inode_item, nblocks, 64); | 1020 | BTRFS_SETGET_FUNCS(inode_nbytes, struct btrfs_inode_item, nbytes, 64); |
1021 | BTRFS_SETGET_FUNCS(inode_block_group, struct btrfs_inode_item, block_group, 64); | 1021 | BTRFS_SETGET_FUNCS(inode_block_group, struct btrfs_inode_item, block_group, 64); |
1022 | BTRFS_SETGET_FUNCS(inode_nlink, struct btrfs_inode_item, nlink, 32); | 1022 | BTRFS_SETGET_FUNCS(inode_nlink, struct btrfs_inode_item, nlink, 32); |
1023 | BTRFS_SETGET_FUNCS(inode_uid, struct btrfs_inode_item, uid, 32); | 1023 | BTRFS_SETGET_FUNCS(inode_uid, struct btrfs_inode_item, uid, 32); |
@@ -1814,15 +1814,6 @@ void btrfs_invalidate_dcache_root(struct btrfs_root *root, char *name, | |||
1814 | int btrfs_merge_bio_hook(struct page *page, unsigned long offset, | 1814 | int btrfs_merge_bio_hook(struct page *page, unsigned long offset, |
1815 | size_t size, struct bio *bio); | 1815 | size_t size, struct bio *bio); |
1816 | 1816 | ||
1817 | static inline void dec_i_blocks(struct inode *inode, u64 dec) | ||
1818 | { | ||
1819 | dec = dec >> 9; | ||
1820 | if (dec <= inode->i_blocks) | ||
1821 | inode->i_blocks -= dec; | ||
1822 | else | ||
1823 | inode->i_blocks = 0; | ||
1824 | } | ||
1825 | |||
1826 | unsigned long btrfs_force_ra(struct address_space *mapping, | 1817 | unsigned long btrfs_force_ra(struct address_space *mapping, |
1827 | struct file_ra_state *ra, struct file *file, | 1818 | struct file_ra_state *ra, struct file *file, |
1828 | pgoff_t offset, pgoff_t last_index); | 1819 | pgoff_t offset, pgoff_t last_index); |