summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.h
Commit message (Collapse)AuthorAgeFilesLines
* Btrfs: added btrfs_find_all_roots()Jan Schmidt2012-01-041-0/+5
| | | | | | | | | | | | 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>
* btrfs: added helper functions to iterate backrefsJan Schmidt2011-09-291-0/+62
These helper functions iterate back references and call a function for each backref. There is also a function to resolve an inode to a path in the file system. Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
OpenPOWER on IntegriCloud