summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-checker.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-20 16:24:18 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:38 +0200
commitcfdaad5e5f425b0a42ff1df3893f137b90099f44 (patch)
tree2e3b81ceee38d809f2a885419410e47b28bc0abc /fs/btrfs/tree-checker.c
parent1c4360ee056b724d3b0e4cb2d0fe4ff6c242b7ca (diff)
downloadlinux-cfdaad5e5f425b0a42ff1df3893f137b90099f44.tar.bz2
btrfs: get fs_info from eb in btrfs_check_leaf_relaxed
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 594f8a0bff61..785318ead9af 100644
--- a/fs/btrfs/tree-checker.c
+++ b/fs/btrfs/tree-checker.c
@@ -968,8 +968,7 @@ int btrfs_check_leaf_full(struct extent_buffer *leaf)
return check_leaf(leaf, true);
}
-int btrfs_check_leaf_relaxed(struct btrfs_fs_info *fs_info,
- struct extent_buffer *leaf)
+int btrfs_check_leaf_relaxed(struct extent_buffer *leaf)
{
return check_leaf(leaf, false);
}