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
quota: Make quota stat accounting lockless.
[safe/jmp/linux-2.6]
/
fs
/
quota
/
quota_tree.c
diff --git
a/fs/quota/quota_tree.c
b/fs/quota/quota_tree.c
index
f81f4bc
..
5b7f741
100644
(file)
--- a/
fs/quota/quota_tree.c
+++ b/
fs/quota/quota_tree.c
@@
-384,7
+384,7
@@
int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot)
} else {
ret = 0;
}
- dqstats
.writes++
;
+ dqstats
_inc(DQST_WRITES)
;
kfree(ddquot);
return ret;
@@
-634,7
+634,7
@@
int qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot)
spin_unlock(&dq_data_lock);
kfree(ddquot);
out:
- dqstats
.reads++
;
+ dqstats
_inc(DQST_READS)
;
return ret;
}
EXPORT_SYMBOL(qtree_read_dquot);