Btrfs: handle errors in btrfs_orphan_cleanup
authorJosef Bacik <josef@redhat.com>
Mon, 31 Jan 2011 21:22:42 +0000 (16:22 -0500)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:26 +0000 (14:21 -0400)
If we cannot truncate an inode for some reason we will never delete the orphan
item associated with that inode, which means that we will loop forever in
btrfs_orphan_cleanup.  Instead of doing this just return error so we fail to
mount.  It sucks, but hey it's better than hanging.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>

No differences found