diff options
-rw-r--r-- | fs/btrfs/print-tree.c | 6 | ||||
-rw-r--r-- | fs/btrfs/print-tree.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 9c3911f4a100..6e7a8c40dcd9 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) | |||
320 | } | 320 | } |
321 | } | 321 | } |
322 | 322 | ||
323 | void btrfs_print_tree(struct btrfs_fs_info *fs_info, struct extent_buffer *c) | 323 | void btrfs_print_tree(struct extent_buffer *c) |
324 | { | 324 | { |
325 | struct btrfs_fs_info *fs_info; | ||
325 | int i; u32 nr; | 326 | int i; u32 nr; |
326 | struct btrfs_key key; | 327 | struct btrfs_key key; |
327 | int level; | 328 | int level; |
328 | 329 | ||
329 | if (!c) | 330 | if (!c) |
330 | return; | 331 | return; |
332 | fs_info = c->fs_info; | ||
331 | nr = btrfs_header_nritems(c); | 333 | nr = btrfs_header_nritems(c); |
332 | level = btrfs_header_level(c); | 334 | level = btrfs_header_level(c); |
333 | if (level == 0) { | 335 | if (level == 0) { |
@@ -361,7 +363,7 @@ void btrfs_print_tree(struct btrfs_fs_info *fs_info, struct extent_buffer *c) | |||
361 | if (btrfs_header_level(next) != | 363 | if (btrfs_header_level(next) != |
362 | level - 1) | 364 | level - 1) |
363 | BUG(); | 365 | BUG(); |
364 | btrfs_print_tree(fs_info, next); | 366 | btrfs_print_tree(next); |
365 | free_extent_buffer(next); | 367 | free_extent_buffer(next); |
366 | } | 368 | } |
367 | } | 369 | } |
diff --git a/fs/btrfs/print-tree.h b/fs/btrfs/print-tree.h index 689a52ee0cd1..3afd508ed8c5 100644 --- a/fs/btrfs/print-tree.h +++ b/fs/btrfs/print-tree.h | |||
@@ -19,5 +19,5 @@ | |||
19 | #ifndef __PRINT_TREE_ | 19 | #ifndef __PRINT_TREE_ |
20 | #define __PRINT_TREE_ | 20 | #define __PRINT_TREE_ |
21 | void btrfs_print_leaf(struct extent_buffer *l); | 21 | void btrfs_print_leaf(struct extent_buffer *l); |
22 | void btrfs_print_tree(struct btrfs_fs_info *fs_info, struct extent_buffer *c); | 22 | void btrfs_print_tree(struct extent_buffer *c); |
23 | #endif | 23 | #endif |