git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rpc: add an rpc_pipe_open method
[safe/jmp/linux-2.6]
/
fs
/
gfs2
/
quota.c
diff --git
a/fs/gfs2/quota.c
b/fs/gfs2/quota.c
index
56aaf91
..
3e073f5
100644
(file)
--- a/
fs/gfs2/quota.c
+++ b/
fs/gfs2/quota.c
@@
-904,7
+904,7
@@
static int need_sync(struct gfs2_quota_data *qd)
do_sync = 0;
else {
value *= gfs2_jindex_size(sdp) * num;
-
do_div
(value, den);
+
value = div_s64
(value, den);
value += (s64)be64_to_cpu(qd->qd_qb.qb_value);
if (value < (s64)be64_to_cpu(qd->qd_qb.qb_limit))
do_sync = 0;