mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-03 19:55:31 +00:00
fs/aio: Switch to use hrtimer_setup_sleeper_on_stack()
hrtimer_setup_sleeper_on_stack() replaces hrtimer_init_sleeper_on_stack() to keep the naming convention consistent. Convert the usage site over to it. The conversion was done with Coccinelle. Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/5f10c259fa43ba2fe774de5b2cedc22f5e9cfd2d.1730386209.git.namcao@linutronix.de
This commit is contained in:
parent
8f02e3563b
commit
28e70352b8
2
fs/aio.c
2
fs/aio.c
@ -1335,7 +1335,7 @@ static long read_events(struct kioctx *ctx, long min_nr, long nr,
|
||||
if (until == 0 || ret < 0 || ret >= min_nr)
|
||||
return ret;
|
||||
|
||||
hrtimer_init_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
||||
hrtimer_setup_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
||||
if (until != KTIME_MAX) {
|
||||
hrtimer_set_expires_range_ns(&t.timer, until, current->timer_slack_ns);
|
||||
hrtimer_sleeper_start_expires(&t, HRTIMER_MODE_REL);
|
||||
|
Loading…
Reference in New Issue
Block a user