diff options
author | Filipe David Borba Manana <fdmanana@gmail.com> | 2013-09-20 09:43:28 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 21:51:24 -0500 |
commit | 53645a91f4baed059ec5dfb22340cf3e6b8fdd2c (patch) | |
tree | 4d4e31ce759164493c4be81c241be2a9d8bab068 /fs/btrfs/free-space-cache.h | |
parent | d4b4087c43cc00a196c5be57fac41f41309f1d56 (diff) |
Btrfs: remove duplicated ino cache's inode lookup
We're doing a unnecessary extra lookup of the ino cache's
inode when we already have it (and holding a reference)
during the process of saving the ino cache contents to disk.
Therefore remove this extra lookup.
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.h')
-rw-r--r-- | fs/btrfs/free-space-cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-cache.h b/fs/btrfs/free-space-cache.h index e737f92cf6d0..ba8d5a1b64b5 100644 --- a/fs/btrfs/free-space-cache.h +++ b/fs/btrfs/free-space-cache.h | |||
@@ -76,7 +76,8 @@ int load_free_ino_cache(struct btrfs_fs_info *fs_info, | |||
76 | struct btrfs_root *root); | 76 | struct btrfs_root *root); |
77 | int btrfs_write_out_ino_cache(struct btrfs_root *root, | 77 | int btrfs_write_out_ino_cache(struct btrfs_root *root, |
78 | struct btrfs_trans_handle *trans, | 78 | struct btrfs_trans_handle *trans, |
79 | struct btrfs_path *path); | 79 | struct btrfs_path *path, |
80 | struct inode *inode); | ||
80 | 81 | ||
81 | void btrfs_init_free_space_ctl(struct btrfs_block_group_cache *block_group); | 82 | void btrfs_init_free_space_ctl(struct btrfs_block_group_cache *block_group); |
82 | int __btrfs_add_free_space(struct btrfs_free_space_ctl *ctl, | 83 | int __btrfs_add_free_space(struct btrfs_free_space_ctl *ctl, |