]> git.baikalelectronics.ru Git - kernel.git/commit
block: rewrite bio_copy_data_iter to use bvec_kmap_local and memcpy_to_bvec
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Jul 2021 05:56:41 +0000 (07:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Aug 2021 19:37:27 +0000 (13:37 -0600)
commit4d65b6743169fe07489be9f04b8c6f9b32f7af7d
tree63a8c7b1779525fab68c72376d9aebf2253eb472
parentc06e461254c2fc7a723ceac5247cf37b09c6764f
block: rewrite bio_copy_data_iter to use bvec_kmap_local and memcpy_to_bvec

Use the proper helpers instead of open coding the copy.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20210727055646.118787-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c