Btrfs-progs: fsck: deal with snapshot one by one when rebuilding extent tree
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 26 Nov 2014 02:58:50 +0000 (10:58 +0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 10 Dec 2014 14:42:52 +0000 (15:42 +0100)
commit41beb7d4a77baa650bb3d4e41e0058d0eddcfe7b
tree122f01555cabdeb7c7ece8f7702f071fd4795cce
parent8ef9ac8cda38bda25561c2964f0aa81d8dcdf451
Btrfs-progs: fsck: deal with snapshot one by one when rebuilding extent tree

Previously, we deal with node block firstly and then leaf block which can
maximize readahead. However, to rebuild extent tree, we need deal with snapshot
one by one.

This patch makes us deal with snapshot one by one if we need rebuild extent
tree otherwise we drop into previous way.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Wang Shilong <wangshilong1991@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-check.c