]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
zram: return errors from read_from_bdev_sync
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2023 17:14:59 +0000 (19:14 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:30:00 +0000 (16:30 -0700)
commit1e9460d132cc728941621f0f7a7b03a7d1c469af
tree91287509c3e551c893f8b1a228f2507300a17993
parent4e3c87b9421df497d849ae61aab9762de7f66afb
zram: return errors from read_from_bdev_sync

Propagate read errors to the caller instead of dropping them on the floor,
and stop returning the somewhat dangerous 1 on success from
read_from_bdev*.

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