projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb54ef8
)
UBIFS: fix 64-bit divisions in debug print
author
Adrian Hunter
<adrian.hunter@nokia.com>
Wed, 24 Jun 2009 07:15:12 +0000
(10:15 +0300)
committer
Artem 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/ubifs/io.c
b/fs/ubifs/io.c
index 7e4267ecfa567724dfe2a4b1329ac89d53889fb0..762a7d6cec73de8433c58c6a6c691115e3c23e1c 100644
(file)
--- a/
fs/ubifs/io.c
+++ b/
fs/ubifs/io.c
@@
-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);
}