]> git.baikalelectronics.ru Git - kernel.git/commit
block: use memzero_page in zero_fill_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Jul 2021 05:56:36 +0000 (07:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Aug 2021 19:37:27 +0000 (13:37 -0600)
commit11842d7b2667b581149b6d0d46868a1f6fb5d7d5
tree65ba9cec4057066f2b2984b12e224b6e1db26ce6
parenta1e5047776108e740e9d7f13a60a5e6b2e2145ee
block: use memzero_page in zero_fill_bio

Use memzero_bvec to zero each segment in the bio instead of manually
mapping and zeroing the data.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20210727055646.118787-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c