Christoph Hellwig 5e7169e7f7 bcache: discard_granularity should not be smaller than a sector
Just like all block I/O, discards are in units of sectors.  Thus setting a
smaller than sector size discard limit in case of > 512 byte sectors in
bcache doesn't make sense.  Always set the discard granularity to 512
bytes instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231228075545.362768-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-12-29 08:44:12 -07:00
..
2022-09-19 11:12:35 -06:00
2023-06-27 14:14:30 -07:00
2021-04-11 08:37:55 -06:00
2023-10-19 14:47:33 -04:00
2023-10-19 14:47:33 -04:00
2022-12-07 09:43:12 -07:00
2023-10-19 14:47:33 -04:00