btrfs-progs: fix next_leaf in restore as it improperly skips some slots
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 28 Aug 2014 02:25:54 +0000 (10:25 +0800)
committerDavid Sterba <dsterba@suse.cz>
Sun, 14 Sep 2014 12:50:54 +0000 (14:50 +0200)
commit24f5a651d94678746dc8a72f28d49c36e33051e7
treed6f0a2c1fe3b502976b131c98808b915b05cb90e
parentc7d16e08bdca950f615c4103dd1a4d8d7f810ab1
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>
cmds-restore.c