Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Btrfs: added btrfs_find_all_roots()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Schmidt committed Jan 4, 2012
1 parent a168650 commit 8da6d58
Show file tree
Hide file tree
Showing 2 changed files with 788 additions and 0 deletions.
Loading

0 comments on commit 8da6d58

Please sign in to comment.