Christoph Hellwig 458aa1a099 block: floor the discard granularity to the physical block size
Discarding less than a physical block doesn't make sense.  This fixes
the existing behavior for zram before the recent changes to default
the discard granularity to the logical block size, and is also a
generally useful sanity check.

Fixes: 3753039def5d ("zram: use the default discard granularity")
Reported-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240103081622.508754-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-01-04 16:05:49 -07:00
..
2023-06-30 11:57:07 -07:00
2023-09-22 08:52:13 -06:00
2023-06-26 12:47:20 -07:00
2023-12-20 20:32:12 -07:00
2023-12-19 20:17:43 -07:00
2023-06-30 11:57:07 -07:00
2023-11-01 12:30:07 -10:00
2022-03-07 12:48:35 -07:00