aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-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 af1fc3b2c2ad..d4209231069d 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -2274,6 +2274,7 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv)
2274 * thin devices' discard limits consistent). 2274 * thin devices' discard limits consistent).
2275 */ 2275 */
2276 ti->discards_supported = true; 2276 ti->discards_supported = true;
2277 ti->discard_zeroes_data_unsupported = true;
2277 } 2278 }
2278 ti->private = pt; 2279 ti->private = pt;
2279 2280
@@ -2745,7 +2746,6 @@ static void set_discard_limits(struct pool *pool, struct queue_limits *limits)
2745 * boundary is not sent to this target. 2746 * boundary is not sent to this target.
2746 */ 2747 */
2747 limits->discard_granularity = pool->sectors_per_block << SECTOR_SHIFT; 2748 limits->discard_granularity = pool->sectors_per_block << SECTOR_SHIFT;
2748 limits->discard_zeroes_data = pool->pf.zero_new_blocks;
2749} 2749}
2750 2750
2751static void pool_io_hints(struct dm_target *ti, struct queue_limits *limits) 2751static void pool_io_hints(struct dm_target *ti, struct queue_limits *limits)