summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-06-29 18:37:49 +0200
committerDavid Sterba <dsterba@suse.com>2017-08-16 16:12:03 +0200
commitabe60ba45c145db2d90609138755fbb3dbc47d00 (patch)
tree62aab40b0a1d80befd2fa21fd290a308b4031b3d
parenta4f78750ef1882e59bb4f947e216cf61ef2d67d2 (diff)
downloadop-kernel-dev-abe60ba45c145db2d90609138755fbb3dbc47d00.zip
op-kernel-dev-abe60ba45c145db2d90609138755fbb3dbc47d00.tar.gz
btrfs: get fs_info from eb in btrfs_print_tree, remove argument
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/print-tree.c6
-rw-r--r--fs/btrfs/print-tree.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c
index 9c3911f..6e7a8c4 100644
--- a/fs/btrfs/print-tree.c
+++ b/fs/btrfs/print-tree.c
@@ -320,14 +320,16 @@ void btrfs_print_leaf(struct extent_buffer *l)
}
}
-void btrfs_print_tree(struct btrfs_fs_info *fs_info, struct extent_buffer *c)
+void btrfs_print_tree(struct extent_buffer *c)
{
+ struct btrfs_fs_info *fs_info;
int i; u32 nr;
struct btrfs_key key;
int level;
if (!c)
return;
+ fs_info = c->fs_info;
nr = btrfs_header_nritems(c);
level = btrfs_header_level(c);
if (level == 0) {
@@ -361,7 +363,7 @@ void btrfs_print_tree(struct btrfs_fs_info *fs_info, struct extent_buffer *c)
if (btrfs_header_level(next) !=
level - 1)
BUG();
- btrfs_print_tree(fs_info, next);
+ btrfs_print_tree(next);
free_extent_buffer(next);
}
}
diff --git a/fs/btrfs/print-tree.h b/fs/btrfs/print-tree.h
index 689a52e..3afd508 100644
--- a/fs/btrfs/print-tree.h
+++ b/fs/btrfs/print-tree.h
@@ -19,5 +19,5 @@
#ifndef __PRINT_TREE_
#define __PRINT_TREE_
void btrfs_print_leaf(struct extent_buffer *l);
-void btrfs_print_tree(struct btrfs_fs_info *fs_info, struct extent_buffer *c);
+void btrfs_print_tree(struct extent_buffer *c);
#endif
OpenPOWER on IntegriCloud