]> 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)
commit137990eba86f0b79f40ead35a89b979f6fdf9cf4
tree0a5bf889142252d91bcc8df33a9c63c18024fe70
parentadb2753b92d0ebc27b4853b1184d8ff96b9cd70b
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