diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-cache-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c index a54108e1e233..1af40ee209e2 100644 --- a/drivers/md/dm-cache-target.c +++ b/drivers/md/dm-cache-target.c | |||
@@ -3094,7 +3094,7 @@ static void cache_io_hints(struct dm_target *ti, struct queue_limits *limits) | |||
3094 | */ | 3094 | */ |
3095 | if (io_opt_sectors < cache->sectors_per_block || | 3095 | if (io_opt_sectors < cache->sectors_per_block || |
3096 | do_div(io_opt_sectors, cache->sectors_per_block)) { | 3096 | do_div(io_opt_sectors, cache->sectors_per_block)) { |
3097 | blk_limits_io_min(limits, 0); | 3097 | blk_limits_io_min(limits, cache->sectors_per_block << SECTOR_SHIFT); |
3098 | blk_limits_io_opt(limits, cache->sectors_per_block << SECTOR_SHIFT); | 3098 | blk_limits_io_opt(limits, cache->sectors_per_block << SECTOR_SHIFT); |
3099 | } | 3099 | } |
3100 | set_discard_limits(cache, limits); | 3100 | set_discard_limits(cache, limits); |