diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-11 15:11:14 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-07-11 15:11:14 -0700 |
commit | 43db1e03c086ed20cc75808d3f45e780ec4ca26e (patch) | |
tree | 08818be985d2e70f2de93f12e9f86499891ef485 /drivers/md | |
parent | 8a18fda0febb7790de20ec1c3b4522ce026be1c6 (diff) | |
parent | d5cfecfe7f3293a4773c4486ac92d742143e8659 (diff) |
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
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-vdo/dm-vdo-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-vdo/dm-vdo-target.c b/drivers/md/dm-vdo/dm-vdo-target.c index b423bec6458b..9d51f72a9d66 100644 --- a/drivers/md/dm-vdo/dm-vdo-target.c +++ b/drivers/md/dm-vdo/dm-vdo-target.c @@ -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); /* |