zram: don't return errors from read_from_bdev_async
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2023 17:14:57 +0000 (19:14 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:29:59 +0000 (16:29 -0700)
commit0cd97a0372f21a66d1591114d0a12391e8d977d7
tree4b098fd4a51822169eeb5bc06f48c4f2a51442d2
parentfd45af53e220b2fe13a5e8db88c5e92bc3296754
zram: don't return errors from read_from_bdev_async

bio_alloc will never return a NULL bio when it is allowed to sleep, and
adding a single page to bio with a single vector also can't fail, so
switch to the asserting __bio_add_page variant and drop the error returns.

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