btrfs-progs: Add new find-root.[ch] infrastructure
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 16 Jan 2015 05:58:45 +0000 (13:58 +0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 11 Feb 2015 17:34:04 +0000 (18:34 +0100)
commit68351e41628bdf21dfb81873fba6e8690533313a
treeee7fb3fa95ddabc664b3db7230261219d25e10c0
parentabf010e593cec271a632b746c031a1bf206f7769
btrfs-progs: Add new find-root.[ch] infrastructure

Introduce new find-root.[ch] infrastructure which has better tree root
judgment and uses much less codes to do it.

The new infrastructure will only record tree blocks with highest level
among its generation, and do better judgment whether the found tree block
is the desired one(level + generation check other than the original
generation only check).

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Makefile.in
find-root.c [new file with mode: 0644]
find-root.h [new file with mode: 0644]