mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-27 05:27:56 +00:00
btrfs-progs: fix next_leaf in restore as it improperly skips some slots
When entering the next level node, the @next_leaf in restore forgets to start at the first slot. Just reset it to the first one. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
c7d16e08bd
commit
24f5a651d9
@ -191,6 +191,7 @@ again:
|
|||||||
level++;
|
level++;
|
||||||
if (level == BTRFS_MAX_LEVEL)
|
if (level == BTRFS_MAX_LEVEL)
|
||||||
return 1;
|
return 1;
|
||||||
|
offset = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user