]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: move kmapping out of btrfs_check_sector_csum()
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Apr 2025 11:10:38 +0000 (13:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:46 +0000 (14:30 +0200)
commit959ddf28390bae9019f0681ea8a239181be1c0f9
treeaa746644c1cb90b15459aa7f3fe7043b7003ab34
parent3240b2c97bb862352411713592d4094420691abd
btrfs: move kmapping out of btrfs_check_sector_csum()

Move kmapping the page out of btrfs_check_sector_csum().

This allows using bvec_kmap_local() where suitable and reduces the number
of kmap*() calls in the raid56 code.

This also means btrfs_check_sector_csum() will only accept a properly
kmapped address.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/inode.c
fs/btrfs/raid56.c
fs/btrfs/scrub.c