OSDN Git Service

btrfs: use bvec_kmap_local in btrfs_csum_one_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 06:31:53 +0000 (08:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:06 +0000 (19:08 +0200)
commit3dcfbcce1b8749a6e62be11c41a797c98ecc4127
tree6f7b94f0041c191e783279beadb6ebdcca2d546f
parent11b66fa6eef3ecdcc7ae0e990b54b795a237a6e9
btrfs: use bvec_kmap_local in btrfs_csum_one_bio

Using local kmaps slightly reduces the chances to stray writes, and
the bvec interface cleans up the code a little bit.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c