zram: don't pass a bvec to __zram_bvec_write
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2023 17:14:54 +0000 (19:14 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:29:59 +0000 (16:29 -0700)
commit6aa4b839e7a481cc20b243168dc3333fc3d87eb0
tree16cdaa2f61e42eb226acd11a48a75272d8eea330
parent889ae9169b45f0fc3fc05f93c3c6fa8a851eab67
zram: don't pass a bvec to __zram_bvec_write

__zram_bvec_write only extracts the page from __zram_bvec_write and always
expects a full page of input.  Pass the page directly instead of the bvec
and rename the function to zram_write_page.

Link: https://lkml.kernel.org/r/20230411171459.567614-13-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/zram_drv.c