]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] percpu_counter_sum()
authorAndrew Morton <akpm@osdl.org>
Wed, 8 Mar 2006 05:55:31 +0000 (21:55 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 8 Mar 2006 22:14:01 +0000 (14:14 -0800)
commit6c33116eb4767d3bc8e62153149269accf8a5c61
tree0295e1ed29794a8e804c4e28a3ea9e72777e533b
parent3e3bb3d9bfaab4c421daf89bb150e16809d825d4
[PATCH] percpu_counter_sum()

Implement percpu_counter_sum().  This is a more accurate but slower version of
percpu_counter_read_positive().

We need this for Alex's speedup-ext3_statfs patch and for the nr_file
accounting fix.  Otherwise these things would be too inaccurate on large CPU
counts.

Cc: Ravikiran G Thirumalai <kiran@scalex86.org>
Cc: Alex Tomas <alex@clusterfs.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/percpu_counter.h
mm/swap.c