mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
d4b4087c43
commit
53645a91f4
3 changed files with 5 additions and 9 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue