Btrfs: fix the error handling wrt orphan items
authorJosef Bacik <jbacik@fusionio.com>
Tue, 13 Aug 2013 18:10:08 +0000 (14:10 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:05:03 +0000 (08:05 -0400)
commit4ef31a45a009a81b2f3c5aaf6f07d7147f80bc8c
treec10236f3a3ff81731aa601f6163baa3d44bad96d
parent175a2b871f46272a2aedce5fb3222a72568b84c3
Btrfs: fix the error handling wrt orphan items

There are several places where we BUG_ON() if we fail to remove the orphan items
and such, which is not ok, so remove those and either abort or just carry on.
This also fixes a problem where if we couldn't start a transaction we wouldn't
actually remove the orphan item reserve for the inode.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/inode.c