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)
commit8da6d5815c592b713ecaf4f4f8b631f8359c96c4
tree1dac6f55dd37193eee821b9d29ff59ee61edb853
parenta168650c08300434e1456abe7b6451f1448230d3
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