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)
commitf32764bd2bbb6ea003c158b1d276b4dc9f900348
tree7fbabde3796a97b8b121349ea76b22b23238230a
parent1513b02c8b537af275ea74fdfb380c618b9e6778
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 dde9588853b1bde.

[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