UBIFS: fix 64-bit divisions in debug print
authorAdrian Hunter <adrian.hunter@nokia.com>
Wed, 24 Jun 2009 07:15:12 +0000 (10:15 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 5 Jul 2009 15:45:18 +0000 (18:45 +0300)
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
fs/ubifs/io.c

index 7e4267ecfa567724dfe2a4b1329ac89d53889fb0..762a7d6cec73de8433c58c6a6c691115e3c23e1c 100644 (file)
@@ -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);
 }