zram: remove valid_io_request
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2023 17:14:44 +0000 (19:14 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:29:56 +0000 (16:29 -0700)
commit9fe95babc7420722d39a1ded379027a1e1825d3a
tree85cb64d50fe270cec9a01b3ed457dfcd88d33175
parenta70aae12502b130b0c30dda44dff09e575c1aaeb
zram: remove valid_io_request

All bios hande to drivers from the block layer are checked against the
device size and for logical block alignment already (and have been since
long before zram was merged), so don't duplicate those checks.

Link: https://lkml.kernel.org/r/20230411171459.567614-3-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
drivers/block/zram/zram_drv.h