Skip to content

Commit 43db1e0

Browse files
committed
Merge tag 'for-6.10/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
Pull device mapper fix from Mikulas Patocka: - Fix broken discard for device mapper VDO target * tag 'for-6.10/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: dm vdo: replace max_discard_sectors with max_hw_discard_sectors
2 parents 8a18fda + d5cfecf commit 43db1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-vdo/dm-vdo-target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ static void vdo_io_hints(struct dm_target *ti, struct queue_limits *limits)
945945
* The value is used by dm-thin to determine whether to pass down discards. The block layer
946946
* splits large discards on this boundary when this is set.
947947
*/
948-
limits->max_discard_sectors =
948+
limits->max_hw_discard_sectors =
949949
(vdo->device_config->max_discard_blocks * VDO_SECTORS_PER_BLOCK);
950950

951951
/*

0 commit comments

Comments
 (0)