mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
bcache: Fix discard granularity
blk_stack_limits() doesn't like a discard granularity of 0. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
This commit is contained in:
parent
487dded86e
commit
90db6919f5
@ -843,6 +843,7 @@ static int bcache_device_init(struct bcache_device *d, unsigned block_size,
|
||||
q->limits.max_segment_size = UINT_MAX;
|
||||
q->limits.max_segments = BIO_MAX_PAGES;
|
||||
q->limits.max_discard_sectors = UINT_MAX;
|
||||
q->limits.discard_granularity = 512;
|
||||
q->limits.io_min = block_size;
|
||||
q->limits.logical_block_size = block_size;
|
||||
q->limits.physical_block_size = block_size;
|
||||
|
Loading…
Reference in New Issue
Block a user