Skip to content

Commit

Permalink
UBIFS: fix 64-bit divisions in debug print
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
  • Loading branch information
Adrian Hunter authored and Artem Bityutskiy committed Jul 5, 2009
1 parent cb54ef8 commit 4473758
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/ubifs/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,9 @@ static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf)
if (wbuf->no_timer)
return;
dbg_io("set timer for jhead %d, %llu-%llu millisecs", wbuf->jhead,
ktime_to_ns(wbuf->softlimit)/USEC_PER_SEC,
(ktime_to_ns(wbuf->softlimit) + wbuf->delta)/USEC_PER_SEC);
div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC),
div_u64(ktime_to_ns(wbuf->softlimit) + wbuf->delta,
USEC_PER_SEC));
hrtimer_start_range_ns(&wbuf->timer, wbuf->softlimit, wbuf->delta,
HRTIMER_MODE_REL);
}
Expand Down

0 comments on commit 4473758

Please sign in to comment.