summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 14:36:46 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:30 +0200
commite902baac656479bdb956224ed693578424cf9e96 (patch)
tree8abf80703f871c77850caf8fbdfd1b7f8acccc1a /fs/btrfs/file.c
parentbtrfs: get fs_info from eb in clean_tree_block (diff)
downloadlinux-e902baac656479bdb956224ed693578424cf9e96.tar.xz
linux-e902baac656479bdb956224ed693578424cf9e96.zip
btrfs: get fs_info from eb in btrfs_leaf_free_space
We can read fs_info from extent buffer and can drop it from the parameters. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 5e6aee84daee..15cc3b861346 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1050,7 +1050,7 @@ delete_extent_item:
if (!ret && replace_extent && leafs_visited == 1 &&
(path->locks[0] == BTRFS_WRITE_LOCK_BLOCKING ||
path->locks[0] == BTRFS_WRITE_LOCK) &&
- btrfs_leaf_free_space(fs_info, leaf) >=
+ btrfs_leaf_free_space(leaf) >=
sizeof(struct btrfs_item) + extent_item_size) {
key.objectid = ino;