Skip to content
Commit 859acaf1 authored by Arne Jansen's avatar Arne Jansen Committed by David Sterba
Browse files

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: default avatarStefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: default avatarArne Jansen <sensille@gmx.net>
parent 2cac13e4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment