Christoph Hellwig 7b47ef52d0 block: add a bdev_discard_granularity helper
Abstract away implementation details from file systems by providing a
block_device based helper to retrieve the discard granularity.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com> [drbd]
Acked-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Acked-by: David Sterba <dsterba@suse.com> [btrfs]
Link: https://lore.kernel.org/r/20220415045258.199825-26-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-04-17 19:49:59 -06:00
..
2021-04-12 15:04:29 +02:00
2022-03-29 18:17:30 -07:00
2022-03-22 10:09:13 -05:00
2021-04-12 15:04:29 +02:00
2021-09-23 09:52:01 -05:00
2021-04-12 15:04:29 +02:00
2021-10-18 14:43:23 -06:00
2022-04-17 19:49:59 -06:00
2021-01-24 14:27:17 +01:00