]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: new backref walking code
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Fri, 2 Dec 2011 13:56:41 +0000 (14:56 +0100)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 5 Jan 2012 09:49:43 +0000 (10:49 +0100)
commitab0dc2c8d1180367be3ac22ee4e5a2880a599afe
tree0a5bf889142252d91bcc8df33a9c63c18024fe70
parentb1ba675e5b6154531d976bdcd9856c09a67052c3
Btrfs: new backref walking code

The old backref iteration code could only safely be used on commit roots.
Besides this limitation, it had bugs in finding the roots for these
references. This commit replaces large parts of it by btrfs_find_all_roots()
which a) really finds all roots and the correct roots, b) works correctly
under heavy file system load, c) considers delayed refs.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/backref.c
fs/btrfs/ioctl.c
fs/btrfs/scrub.c