]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not BUG_ON on aborted situation
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 4 Mar 2013 16:25:40 +0000 (16:25 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 4 Mar 2013 21:33:23 +0000 (16:33 -0500)
commit18a2297c7227aca5b7d814761bef8f59f07a72a3
tree5e950eb614b23cef93e0348e94ed3e65ff1abe64
parent0aa91898c7670680951de2f8f2641603ac01d34a
Btrfs: do not BUG_ON on aborted situation

Btrfs balance can easily hit BUG_ON in these places, but we want
to it bail out gracefully after we force the whole filesystem to
readonly.  So we use btrfs_std_error hook in place of BUG_ON.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/relocation.c
fs/btrfs/volumes.c