]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: kill some BUG_ONs() in the find_parent_nodes()
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Fri, 29 Mar 2013 23:03:21 +0000 (23:03 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:30 +0000 (15:54 -0400)
commit14074db585d84330d4fee35a210163cd1d7768c6
treec7efbf55501297e39f967660657dd7f29f753eac
parent4c2adc2cb8e3e9d1c6b0555cf4e7cb5f814c8fbe
Btrfs: kill some BUG_ONs() in the find_parent_nodes()

The reason that BUG_ON() happens in these places is just
because of ENOMEM.

We try ro return ENOMEM rather than trigger BUG_ON(), the
caller will abort the transaction thus avoiding the kernel panic.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/backref.c