]> git.baikalelectronics.ru Git - kernel.git/commit
quota: Convert quota statistics to generic percpu_counter
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 26 May 2010 21:21:58 +0000 (23:21 +0200)
committerJan Kara <jack@suse.cz>
Thu, 27 May 2010 16:56:27 +0000 (18:56 +0200)
commitc5c36c780ff604ff3afdefb1b00939a19d4e9db5
tree7fbabde3796a97b8b121349ea76b22b23238230a
parentbece6d57c4e56b5c95ef7ea9d061a4cc1517263a
quota: Convert quota statistics to generic percpu_counter

Generic per-cpu counter has some memory overhead but it is negligible for
modern systems and embedded systems compile without quota support.  And code
reuse is a good thing. This patch should fix complain from preemptive kernels
which was introduced by 7592ddb2272ad9b.

[Jan Kara: Fixed patch to work on 32-bit archs as well]

Reported-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c
include/linux/quota.h