OSDN Git Service

btrfs: scrub: cleanup the remaining nodatasum fixup code
authorQu Wenruo <wqu@suse.com>
Wed, 11 Jul 2018 05:41:22 +0000 (13:41 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:53 +0000 (13:12 +0200)
commit8b9b6f255485a4354da5474b16e79c447222e9ed
treea55620ff36abbf5cf4ef91da46e38b6cdf1ceefc
parent46df06b85e28eaf430aa5c8f8aa26120fa746b72
btrfs: scrub: cleanup the remaining nodatasum fixup code

Remove the remaining code that misused the page cache pages during
device replace and could cause data corruption for compressed nodatasum
extents. Such files do not normally exist but there's a bug that allows
this combination and the corruption was exposed by device replace fixup
code.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c