diff options
author | Filipe David Borba Manana <fdmanana@gmail.com> | 2013-09-20 15:43:28 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-12 03:51:24 +0100 |
commit | 53645a91f4baed059ec5dfb22340cf3e6b8fdd2c (patch) | |
tree | 4d4e31ce759164493c4be81c241be2a9d8bab068 /fs/btrfs/inode-map.c | |
parent | Btrfs: do a full search everytime in btrfs_search_old_slot (diff) | |
download | linux-53645a91f4baed059ec5dfb22340cf3e6b8fdd2c.tar.xz linux-53645a91f4baed059ec5dfb22340cf3e6b8fdd2c.zip |
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/inode-map.c')
-rw-r--r-- | fs/btrfs/inode-map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c index d11e1c6610b6..b863e45d373b 100644 --- a/fs/btrfs/inode-map.c +++ b/fs/btrfs/inode-map.c @@ -503,7 +503,7 @@ again: } btrfs_free_reserved_data_space(inode, prealloc); - ret = btrfs_write_out_ino_cache(root, trans, path); + ret = btrfs_write_out_ino_cache(root, trans, path, inode); out_put: iput(inode); out_release: |