Commit 90db6919f5f1614d1b7a92052445506bc6c564d2
1 parent
487dded86e
Exists in
master
and in
13 other branches
bcache: Fix discard granularity
blk_stack_limits() doesn't like a discard granularity of 0. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
drivers/md/bcache/super.c
... | ... | @@ -843,6 +843,7 @@ |
843 | 843 | q->limits.max_segment_size = UINT_MAX; |
844 | 844 | q->limits.max_segments = BIO_MAX_PAGES; |
845 | 845 | q->limits.max_discard_sectors = UINT_MAX; |
846 | + q->limits.discard_granularity = 512; | |
846 | 847 | q->limits.io_min = block_size; |
847 | 848 | q->limits.logical_block_size = block_size; |
848 | 849 | q->limits.physical_block_size = block_size; |