]> git.baikalelectronics.ru Git - kernel.git/commit
quota: Make quota stat accounting lockless.
authorDmitry Monakhov <dmonakhov@openvz.org>
Mon, 26 Apr 2010 16:03:33 +0000 (20:03 +0400)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:41 +0000 (19:30 +0200)
commit7592ddb2272ad9b39986e846eae4957ec6097111
tree9f9c68bf63120056517bbfce78b75e6820cc4c4b
parentdfe6989dfa667416e890100bd36bdff161c0c862
quota: Make quota stat accounting lockless.

Quota stats is mostly writable data structure. Let's alloc percpu
bucket for each value.

NOTE: dqstats_read() function is racy against dqstats_{inc,dec}
and may return inconsistent value. But this is ok since absolute
accuracy is not required.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c
fs/quota/quota_tree.c
fs/quota/quota_v1.c
include/linux/quota.h