projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3753039
)
bcache: use the default discard granularity
author
Christoph Hellwig
<hch@lst.de>
Thu, 28 Dec 2023 07:55:44 +0000
(07:55 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 29 Dec 2023 15:44:12 +0000
(08:44 -0700)
The discard granularity now defaults to a single sector, so don't set
that value explicitly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link:
https://lore.kernel.org/r/20231228075545.362768-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/super.c
b/drivers/md/bcache/super.c
index ecc1447f202a4200a7f31f1eb5b12c60afbb2726..39ec95b8613f1f67e9a125fc10ded5fd9e0f71f0 100644
(file)
--- a/
drivers/md/bcache/super.c
+++ b/
drivers/md/bcache/super.c
@@
-954,7
+954,6
@@
static int bcache_device_init(struct bcache_device *d, unsigned int block_size,
q->limits.max_segment_size = UINT_MAX;
q->limits.max_segments = BIO_MAX_VECS;
blk_queue_max_discard_sectors(q, UINT_MAX);
- q->limits.discard_granularity = block_size;
q->limits.io_min = block_size;
q->limits.logical_block_size = block_size;
q->limits.physical_block_size = block_size;