Skip to content

Commit

Permalink
fix: Don't use blk_limits_io functions in 6.12
Browse files Browse the repository at this point in the history
Signed-off-by: Akira Hayakawa <[email protected]>
  • Loading branch information
akiradeveloper committed Dec 10, 2024
1 parent d650842 commit 8f4539d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dm-writeboost-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,11 @@ static int writeboost_iterate_devices(struct dm_target *ti,

static void writeboost_io_hints(struct dm_target *ti, struct queue_limits *limits)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0)
limits->io_opt = 4096;
#else
blk_limits_io_opt(limits, 4096);
#endif
}

static void writeboost_status(struct dm_target *ti, status_type_t type,
Expand Down

0 comments on commit 8f4539d

Please sign in to comment.