]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't check DUP chunks twice
authorArne Jansen <sensille@gmx.net>
Thu, 9 Feb 2012 14:09:02 +0000 (15:09 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 15 Feb 2012 15:40:24 +0000 (16:40 +0100)
commit627f2f68731ebd78ee39e23bb41ec1307f2f9061
tree0e08eca0d031161762623049076a5bf3bf1186c0
parent5b2dbdcbc3b398d7a6cafe1ccdc78c2ba9154bfd
btrfs: don't check DUP chunks twice

Because scrub enumerates the dev extent tree to find the chunks to scrub,
it currently finds each DUP chunk twice and also scrubs it twice. This
patch makes sure that scrub_chunk only checks that part of the chunk the
dev extent has been found for. This only changes the behaviour for DUP
chunks.

Reported-and-tested-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Arne Jansen <sensille@gmx.net>
fs/btrfs/scrub.c