- Fix broken discard for device mapper VDO target
-----BEGIN PGP SIGNATURE----- iIoEABYIADIWIQRnH8MwLyZDhyYfesYTAyx9YGnhbQUCZpAyqhQcbXBhdG9ja2FA cmVkaGF0LmNvbQAKCRATAyx9YGnhbRJyAQD8JNzNUDd2hTJhKEGzf7RZ1cOjbp6e E0N9kWJHw37HTgD/ZJ+24Z9P2U+Uip8+tzisGCcnbHaJMM4ndc+NS/u4rQw= =65U3 -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
43db1e03c0
@ -945,7 +945,7 @@ static void vdo_io_hints(struct dm_target *ti, struct queue_limits *limits)
|
||||
* The value is used by dm-thin to determine whether to pass down discards. The block layer
|
||||
* splits large discards on this boundary when this is set.
|
||||
*/
|
||||
limits->max_discard_sectors =
|
||||
limits->max_hw_discard_sectors =
|
||||
(vdo->device_config->max_discard_blocks * VDO_SECTORS_PER_BLOCK);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user