]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: added btrfs_find_all_roots()
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 23 Nov 2011 17:55:04 +0000 (18:55 +0100)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 4 Jan 2012 15:26:38 +0000 (16:26 +0100)
commitadb2753b92d0ebc27b4853b1184d8ff96b9cd70b
tree1dac6f55dd37193eee821b9d29ff59ee61edb853
parentf5f5457b0cd38a5015a62b3454435e43bf79634a
Btrfs: added btrfs_find_all_roots()

This function gets a byte number (a data extent), collects all the leafs
pointing to it and walks up the trees to find all fs roots pointing to those
leafs. It also returns the list of all leafs pointing to that extent.

It does proper locking for the involved trees, can be used on busy file
systems and honors delayed refs.

Signed-off-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/backref.c
fs/btrfs/backref.h