]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65760c3ade915cae779430daf9a62ae84e280afd
tree6f7b94f0041c191e783279beadb6ebdcca2d546f
parent30d3d9eb4cf51425e33aed8513a422df6e2a7adb
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