zram: directly call zram_read_page in writeback_store
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2023 17:14:52 +0000 (19:14 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:29:58 +0000 (16:29 -0700)
commit79c744eeaa8eaa2d8fbb4f2c1edf292df7163c8a
treebb86454aa4709a097e564669cd984972b8c1e29b
parentffb0a9e66562083cc0fb0a93d2de85cecd23a0e8
zram: directly call zram_read_page in writeback_store

writeback_store always reads a full page, so just call zram_read_page
directly and bypass the boune buffer handling.

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