diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 16:25:00 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 19:02:38 +0200 |
commit | 813fd1dcab2d030ce4445f3ecc143a492a62e8b8 (patch) | |
tree | c704f12107c386ddafb25dc2bd960fd68764a5e1 /fs/btrfs/tree-checker.c | |
parent | btrfs: get fs_info from eb in btrfs_check_leaf_relaxed (diff) | |
download | linux-813fd1dcab2d030ce4445f3ecc143a492a62e8b8.tar.xz linux-813fd1dcab2d030ce4445f3ecc143a492a62e8b8.zip |
btrfs: get fs_info from eb in btrfs_check_node
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c index 785318ead9af..3f047758ec24 100644 --- a/fs/btrfs/tree-checker.c +++ b/fs/btrfs/tree-checker.c @@ -973,8 +973,9 @@ int btrfs_check_leaf_relaxed(struct extent_buffer *leaf) return check_leaf(leaf, false); } -int btrfs_check_node(struct btrfs_fs_info *fs_info, struct extent_buffer *node) +int btrfs_check_node(struct extent_buffer *node) { + struct btrfs_fs_info *fs_info = node->fs_info; unsigned long nr = btrfs_header_nritems(node); struct btrfs_key key, next_key; int slot; |