OSDN Git Service

btrfs: raid56: prepare data checksums for later RMW verification
authorQu Wenruo <wqu@suse.com>
Mon, 14 Nov 2022 00:26:33 +0000 (08:26 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:57 +0000 (18:00 +0100)
commitc5a415627be4758ebdd274de7148706d6713c7ec
tree48d39865c7a6b5113bea94ac963a834b82c6110f
parent97e3823933108cfc648bb08d5ad36251b6588164
btrfs: raid56: prepare data checksums for later RMW verification

This is for later data checksum verification at RMW time.

This patch will try to allocate the needed memory for a locked rbio if
the rbio is for data exclusively (we don't want to handle mixed bg yet).
The memory will be released when the rbio is finished.

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