Skip to content

Commit 28e7035

Browse files
covanamKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/5f10c259fa43ba2fe774de5b2cedc22f5e9cfd2d.1730386209.git.namcao@linutronix.de
1 parent 8f02e35 commit 28e7035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/aio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ static long read_events(struct kioctx *ctx, long min_nr, long nr,
13351335
if (until == 0 || ret < 0 || ret >= min_nr)
13361336
return ret;
13371337

1338-
hrtimer_init_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
1338+
hrtimer_setup_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
13391339
if (until != KTIME_MAX) {
13401340
hrtimer_set_expires_range_ns(&t.timer, until, current->timer_slack_ns);
13411341
hrtimer_sleeper_start_expires(&t, HRTIMER_MODE_REL);

0 commit comments

Comments
 (0)