• Andrew Morton's avatar
    [PATCH] percpu_counter_sum() · e2bab3d9
    Andrew Morton authored
    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: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    e2bab3d9
percpu_counter.h 2.22 KB