Files
android_kernel_xiaomi_sm8450/fs/btrfs
Jan Schmidt d5c88b735f 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 <list.btrfs@jan-o-sch.net>
2012-05-26 12:17:51 +02:00
..
2011-07-26 16:49:47 -07:00
2008-09-25 11:04:06 -04:00
2011-10-20 18:10:50 +02:00
2011-06-17 14:54:18 -04:00
2012-05-26 12:17:49 +02:00
2012-05-26 12:17:49 +02:00
2012-04-27 13:55:13 -04:00