]> Pileus Git - ~andy/linux/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)
commit0f788c58194e4ccc5b3ab23f872c5e18542335e4
tree5e950eb614b23cef93e0348e94ed3e65ff1abe64
parent288189471d7e12fb22c37870e151833f438deea8
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