From: Jan Schmidt Date: Tue, 15 May 2012 15:55:51 +0000 (+0200) Subject: Btrfs: bugfix: ignore the wrong key for indirect tree block backrefs X-Git-Tag: v3.5-rc1~17^2^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5c88b735fdf2ef796bb937396dd58dac84e8407;p=pandora-kernel.git Btrfs: bugfix: ignore the wrong key for indirect tree block backrefs The key we store with a tree block backref is only a hint. It is set when the ref is created and can remain correct for a long time. As the tree is rebalanced, however, eventually the key no longer points to the correct destination. With this patch, we change find_parent_nodes to no longer add keys unless it knows for sure they're correct (e.g. because they're for an extent data backref). Then when we later encounter a backref ref with no parent and no key set, we grab the block and take the first key from the block itself. Signed-off-by: Jan Schmidt --- Reading git-diff-tree failed