diff options
Diffstat (limited to 'fs/ubifs/io.c')
-rw-r--r-- | fs/ubifs/io.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c index 7e4267ecfa56..762a7d6cec73 100644 --- a/fs/ubifs/io.c +++ b/fs/ubifs/io.c | |||
@@ -315,8 +315,9 @@ static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) | |||
315 | if (wbuf->no_timer) | 315 | if (wbuf->no_timer) |
316 | return; | 316 | return; |
317 | dbg_io("set timer for jhead %d, %llu-%llu millisecs", wbuf->jhead, | 317 | dbg_io("set timer for jhead %d, %llu-%llu millisecs", wbuf->jhead, |
318 | ktime_to_ns(wbuf->softlimit)/USEC_PER_SEC, | 318 | div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC), |
319 | (ktime_to_ns(wbuf->softlimit) + wbuf->delta)/USEC_PER_SEC); | 319 | div_u64(ktime_to_ns(wbuf->softlimit) + wbuf->delta, |
320 | USEC_PER_SEC)); | ||
320 | hrtimer_start_range_ns(&wbuf->timer, wbuf->softlimit, wbuf->delta, | 321 | hrtimer_start_range_ns(&wbuf->timer, wbuf->softlimit, wbuf->delta, |
321 | HRTIMER_MODE_REL); | 322 | HRTIMER_MODE_REL); |
322 | } | 323 | } |