Btrfs: dev-replace: skip prealloc extents when copy nocow pages
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 28 Feb 2018 01:10:58 +0000 (18:10 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:40 +0000 (15:09 +0200)
commited5d5f37e653b606c93b2d5f1cdd155be6fefce0
tree0e20a6ff64e1121fdda10cd08a5a6815da30ef36
parentd612ac59efc3b57858f310c8471d7ee2779658c9
Btrfs: dev-replace: skip prealloc extents when copy nocow pages

It doens't make sense to process prealloc extents as pages will be
filled with zero when reading prealloc extents.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c