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)
commit66b4ffd110f9b48b8d8c1319ee446b53b8d073bf
tree690b14cda46b47c0d71be15a82019c35729afa75
parent3893e33b0bebee2f67d96b6c15259dc884523c20
Btrfs: handle errors in btrfs_orphan_cleanup

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>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c