OSDN Git Service

Btrfs: kill BUG_ON in run_delayed_tree_ref
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 15 Sep 2016 02:19:05 +0000 (19:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2019 21:16:07 +0000 (22:16 +0100)
commit79ddacdf1df2dc886d11737da2816423129ba4a4
tree7ceeb76376d51aeb8c20c97fd81d359aeaff13da
parentd6719cf116b2fc8a7f51e84430c28febfac1eded
Btrfs: kill BUG_ON in run_delayed_tree_ref

commit 02794222c4132ac003e7281fb71f4ec1645ffc87 upstream.

In a corrupted btrfs image, we can come across this BUG_ON and
get an unreponsive system, but if we return errors instead,
its caller can handle everything gracefully by aborting the current
transaction.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/extent-tree.c