]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57471689e55e55fbb7864c8c1f598a64d42804e7
treec10236f3a3ff81731aa601f6163baa3d44bad96d
parentf5c089c5a9c087c2a55f97c6b2dde2f51aabb0d8
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