]> 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)
commit4260b87ceeed62b7afcfbb7f0aebe3e0d408c6db
treec10236f3a3ff81731aa601f6163baa3d44bad96d
parentc3fd8acc1284078c536df19bcbd980a54b6c23d8
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