Merge tag 'for-6.10/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[linux-2.6-block.git] / drivers / md / dm.c
index 597dd7a258234aeb4b982f74cbd9ae62ffb368ce..13037d6a6f62a25ab68295eb4160a4f6cf831161 100644 (file)
@@ -1086,7 +1086,7 @@ void disable_discard(struct mapped_device *md)
        struct queue_limits *limits = dm_get_queue_limits(md);
 
        /* device doesn't really support DISCARD, disable it */
-       limits->max_discard_sectors = 0;
+       limits->max_hw_discard_sectors = 0;
 }
 
 void disable_write_zeroes(struct mapped_device *md)