zram: pass a page to read_from_bdev
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2023 17:14:56 +0000 (19:14 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:29:59 +0000 (16:29 -0700)
commitfd45af53e220b2fe13a5e8db88c5e92bc3296754
treeca0d0ee8c3686fccb3466c564c8ed5c7e1baf0b6
parenta0b81ae7a4ff8a779e9f16152563d614cb91f13c
zram: pass a page to read_from_bdev

read_from_bdev always reads a whole page, so pass a page to it instead of
the bvec and remove the now pointless zram_bvec_read_from_bdev wrapper.

Link: https://lkml.kernel.org/r/20230411171459.567614-15-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