mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-24 23:22:27 +00:00
Btrfs-progs: fix segmentation fault of 'btrfs-debug-tree -e'
Due to some historical reasons, we remove 'printing leaf' part, which'd lead to 'Segmentation fault' of btrfs-debug-tree -e, this patch adds it back. Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
This commit is contained in:
parent
2a2d8e1962
commit
e5701088e2
@ -52,6 +52,11 @@ static void print_extents(struct btrfs_root *root, struct extent_buffer *eb)
|
||||
if (!eb)
|
||||
return;
|
||||
|
||||
if (btrfs_is_leaf(eb)) {
|
||||
btrfs_print_leaf(root, eb);
|
||||
return;
|
||||
}
|
||||
|
||||
size = btrfs_level_size(root, btrfs_header_level(eb) - 1);
|
||||
nr = btrfs_header_nritems(eb);
|
||||
for (i = 0; i < nr; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user