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)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 16:08:44 +0000 (18:08 +0200)
commit02794222c4132ac003e7281fb71f4ec1645ffc87
treecefd45556357dba00b53425d9ab018da2d8e1a31
parent6bdf131fac2336adb1a628f992ba32384f653a55
Btrfs: kill BUG_ON in run_delayed_tree_ref

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>
fs/btrfs/extent-tree.c