From: Wang Shilong Date: Sat, 28 Dec 2013 11:52:39 +0000 (+0800) Subject: Btrfs: fix an oops when we fail to relocate tree blocks X-Git-Tag: v3.14-rc1~29^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1708cc5723cb775703b42a0ce8e521019c42dd67;p=pandora-kernel.git Btrfs: fix an oops when we fail to relocate tree blocks During balance test, we hit an oops: [ 2013.841551] kernel BUG at fs/btrfs/relocation.c:1174! The problem is that if we fail to relocate tree blocks, we should update backref cache, otherwise, some pending nodes are not updated while snapshot check @cache->last_trans is within one transaction and won't update it and then oops happen. Signed-off-by: Wang Shilong Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed