]> 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)
commitb1ba675e5b6154531d976bdcd9856c09a67052c3
tree1dac6f55dd37193eee821b9d29ff59ee61edb853
parent66c17604bf61750d9c49c49a32ef833b7b9e92a2
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