diff options
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
| -rw-r--r-- | fs/btrfs/btrfs_inode.h | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 12394a90d60f..5b2ad6bc4fe7 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h | |||
| @@ -87,9 +87,6 @@ struct btrfs_inode { | |||
| 87 | /* node for the red-black tree that links inodes in subvolume root */ | 87 | /* node for the red-black tree that links inodes in subvolume root */ | 
| 88 | struct rb_node rb_node; | 88 | struct rb_node rb_node; | 
| 89 | 89 | ||
| 90 | /* the space_info for where this inode's data allocations are done */ | ||
| 91 | struct btrfs_space_info *space_info; | ||
| 92 | |||
| 93 | unsigned long runtime_flags; | 90 | unsigned long runtime_flags; | 
| 94 | 91 | ||
| 95 | /* full 64 bit generation number, struct vfs_inode doesn't have a big | 92 | /* full 64 bit generation number, struct vfs_inode doesn't have a big | 
| @@ -191,11 +188,14 @@ static inline void btrfs_i_size_write(struct inode *inode, u64 size) | |||
| 191 | BTRFS_I(inode)->disk_i_size = size; | 188 | BTRFS_I(inode)->disk_i_size = size; | 
| 192 | } | 189 | } | 
| 193 | 190 | ||
| 194 | static inline bool btrfs_is_free_space_inode(struct btrfs_root *root, | 191 | static inline bool btrfs_is_free_space_inode(struct inode *inode) | 
| 195 | struct inode *inode) | ||
| 196 | { | 192 | { | 
| 197 | if (root == root->fs_info->tree_root || | 193 | struct btrfs_root *root = BTRFS_I(inode)->root; | 
| 198 | BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID) | 194 | |
| 195 | if (root == root->fs_info->tree_root && | ||
| 196 | btrfs_ino(inode) != BTRFS_BTREE_INODE_OBJECTID) | ||
| 197 | return true; | ||
| 198 | if (BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID) | ||
| 199 | return true; | 199 | return true; | 
| 200 | return false; | 200 | return false; | 
| 201 | } | 201 | } | 
