summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-checker.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 16:23:29 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:38 +0200
commit1c4360ee056b724d3b0e4cb2d0fe4ff6c242b7ca (patch)
treeeb0a898a380a10233be5720b522cb59321ffc82c /fs/btrfs/tree-checker.c
parent929be17a9b49b10743c3db304f939d27da1abd2f (diff)
downloadlwn-1c4360ee056b724d3b0e4cb2d0fe4ff6c242b7ca.tar.gz
lwn-1c4360ee056b724d3b0e4cb2d0fe4ff6c242b7ca.zip
btrfs: get fs_info from eb in btrfs_check_leaf_full
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/tree-checker.c')
-rw-r--r--fs/btrfs/tree-checker.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c
index 6828de4e976c..594f8a0bff61 100644
--- a/fs/btrfs/tree-checker.c
+++ b/fs/btrfs/tree-checker.c
@@ -963,8 +963,7 @@ static int check_leaf(struct extent_buffer *leaf, bool check_item_data)
return 0;
}
-int btrfs_check_leaf_full(struct btrfs_fs_info *fs_info,
- struct extent_buffer *leaf)
+int btrfs_check_leaf_full(struct extent_buffer *leaf)
{
return check_leaf(leaf, true);
}