aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 0e844a5eca8f..4843801173fe 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -3177,7 +3177,7 @@ static void pool_io_hints(struct dm_target *ti, struct queue_limits *limits)
3177 */ 3177 */
3178 if (io_opt_sectors < pool->sectors_per_block || 3178 if (io_opt_sectors < pool->sectors_per_block ||
3179 do_div(io_opt_sectors, pool->sectors_per_block)) { 3179 do_div(io_opt_sectors, pool->sectors_per_block)) {
3180 blk_limits_io_min(limits, 0); 3180 blk_limits_io_min(limits, pool->sectors_per_block << SECTOR_SHIFT);
3181 blk_limits_io_opt(limits, pool->sectors_per_block << SECTOR_SHIFT); 3181 blk_limits_io_opt(limits, pool->sectors_per_block << SECTOR_SHIFT);
3182 } 3182 }
3183 3183