From: Wang Shilong Date: Fri, 29 Mar 2013 23:03:21 +0000 (+0000) Subject: Btrfs: kill some BUG_ONs() in the find_parent_nodes() X-Git-Tag: v3.10-rc1~31^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f172393952a8771ca8970b8fcdd332a5a6ea0f56;p=pandora-kernel.git 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 Reviewed-by: Miao Xie Reviewed-by: Jan Schmidt Signed-off-by: Josef Bacik --- Reading git-diff-tree failed