OSDN Git Service

zram: use memcpy_to_bvec in zram_bvec_read
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Mar 2022 11:18:58 +0000 (14:18 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Mar 2022 19:29:20 +0000 (12:29 -0700)
commitb3bd0a8a74ab970cc1cf0849e66bd0906741105b
tree91acd1e521e2f88506b03171488b638bcf1df7ca
parentb7ab4611b6c793100197abc93e069d6f9aab7960
zram: use memcpy_to_bvec in zram_bvec_read

Use the proper helper instead of open coding the copy.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20220303111905.321089-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/zram/zram_drv.c