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-10-20 18:10:47 +02:00
2012-03-22 01:45:34 +01:00
2012-03-22 01:45:34 +01:00
2012-05-26 12:17:51 +02:00
2012-03-27 14:51:21 +02:00
2012-01-16 15:29:43 -05:00
2012-02-24 10:39:05 -05:00
2011-12-21 19:14:09 +01:00
2009-01-06 09:38:55 -05:00
2012-04-12 16:03:56 -04:00
2012-03-22 01:45:34 +01:00
2012-05-06 07:23:47 -04:00
2012-04-18 19:22:38 +02:00
2012-03-22 11:52:54 +01:00
2011-07-26 16:49:47 -07:00
2012-03-22 01:45:34 +01:00
2012-01-04 16:12:48 +01:00
2012-03-22 11:52:54 +01:00
2012-05-06 07:23:47 -04:00
2012-05-06 07:23:47 -04:00
2012-03-22 11:52:54 +01:00
2008-09-25 11:04:06 -04:00
2012-05-04 15:16:06 -04:00
2012-04-18 19:22:30 +02:00
2011-08-01 14:30:50 -04:00
2012-02-15 16:40:25 +01:00
2012-05-06 07:23:47 -04:00
2012-03-28 20:34:10 -04:00
2012-04-27 14:51:05 -04:00
2012-04-12 20:54:01 -04:00
2011-05-06 12:34:03 +02:00
2009-06-10 11:29:53 -04:00
2012-03-28 20:31:37 -04:00
2012-03-29 09:57:44 -04:00
2011-04-25 16:46:11 +08:00
2012-04-27 14:23:22 -04:00
2012-04-18 19:22:35 +02:00
2012-05-04 15:16:06 -04:00
2011-12-21 19:14:16 +01:00
2012-03-22 01:45:34 +01:00
2012-03-22 01:45:34 +01:00
2011-02-16 15:37:58 -05:00
2012-01-16 15:27:58 -05:00
2012-03-22 01:45:34 +01:00
2012-03-22 01:45:34 +01:00
2012-03-22 11:52:54 +01:00
2011-10-20 18:10:50 +02:00
2008-09-25 11:03:56 -04:00
2012-04-18 19:12:44 +02:00
2012-04-27 13:55:14 -04:00
2012-03-22 11:52:54 +01:00
2012-05-04 15:16:07 -04:00
2012-03-26 17:04:23 -04:00
2012-04-27 13:55:12 -04:00
2011-06-17 14:54:18 -04:00
2012-04-18 19:22:14 +02:00
2012-03-22 01:45:40 +01:00
2011-05-02 13:57:22 +02:00
2012-05-06 07:23:47 -04:00
2012-03-22 01:45:34 +01:00
2012-05-26 12:17:49 +02:00
2012-05-26 12:17:49 +02:00
2008-09-25 15:41:59 -04:00
2012-04-27 13:55:13 -04:00
2012-03-22 01:45:34 +01:00
2012-01-16 15:28:54 -05:00
2011-02-01 11:12:29 -05:00
2011-03-22 17:44:17 -07:00