Btrfs-progs: just return -ENOENT if we don't find the root item
authorJosef Bacik <jbacik@fusionio.com>
Wed, 23 Oct 2013 16:18:03 +0000 (12:18 -0400)
committerChris Mason <chris.mason@fusionio.com>
Thu, 24 Oct 2013 09:57:44 +0000 (05:57 -0400)
commitb91d84abc0df2195aaa06a79b565d8852b3099b2
treeb6868496f083c512c9836cdc51a5fb58aaf59d3e
parentcee267d8c8175e6f8cd7605ccb11379a20ea8c99
Btrfs-progs: just return -ENOENT if we don't find the root item

We were bug_on(slot == 0), but that's just obnoxious, return -ENOENT so we can
handle the situation properly.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
root-tree.c