Btrfs-progs: handle -eagain properly
authorJosef Bacik <jbacik@fb.com>
Fri, 6 Feb 2015 14:59:54 +0000 (09:59 -0500)
committerJosef Bacik <jbacik@fb.com>
Mon, 9 Feb 2015 19:53:14 +0000 (14:53 -0500)
commitcc73e60d952af55f4aac5266711456d5a774c207
treeafc54ebcfbb72662101f27726d9e3d9f3c60972c
parent8ab2d7a9dd3099c9a5fdc5acd354b57e1039d18a
Btrfs-progs: handle -eagain properly

If we fix bad blocks during run_next_block we will return -EAGAIN to loop around
and start again.  The deal_with_roots work messed up this handling, this patch
fixes it.  With this patch we can properly deal with broken tree blocks.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
cmds-check.c