Skip to content

Commit 105c1a5

Browse files
Christoph Hellwigaxboe
authored andcommitted
bcache: use the default discard granularity
The discard granularity now defaults to a single sector, so don't set that value explicitly. Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 3753039 commit 105c1a5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/md/bcache/super.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,6 @@ static int bcache_device_init(struct bcache_device *d, unsigned int block_size,
954954
q->limits.max_segment_size = UINT_MAX;
955955
q->limits.max_segments = BIO_MAX_VECS;
956956
blk_queue_max_discard_sectors(q, UINT_MAX);
957-
q->limits.discard_granularity = block_size;
958957
q->limits.io_min = block_size;
959958
q->limits.logical_block_size = block_size;
960959
q->limits.physical_block_size = block_size;

0 commit comments

Comments
 (0)