From: Miao Xie Date: Fri, 11 Nov 2011 01:45:05 +0000 (-0500) Subject: Btrfs: fix orphan backref nodes X-Git-Tag: v3.2-rc2~22^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76b9e23d25d5c99f994bee3172de39492e452e93;p=pandora-kernel.git Btrfs: fix orphan backref nodes If the root node of a fs/file tree is in the block group that is being relocated, but the others are not in the other block groups. when we create a snapshot for this tree between the relocation tree creation ends and ->create_reloc_tree is set to 0, Btrfs will create some backref nodes that are the lowest nodes of the backrefs cache. But we forget to add them into ->leaves list of the backref cache and deal with them, and at last, they will triggered BUG_ON(). kernel BUG at fs/btrfs/relocation.c:239! This patch fixes it by adding them into ->leaves list of backref cache. Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed