kernel-fxtec-pro1x/fs/ext4
Eric Dumazet 179f7ebff6 percpu_counter: FBC_BATCH should be a variable
For NR_CPUS >= 16 values, FBC_BATCH is 2*NR_CPUS

Considering more and more distros are using high NR_CPUS values, it makes
sense to use a more sensible value for FBC_BATCH, and get rid of NR_CPUS.

A sensible value is 2*num_online_cpus(), with a minimum value of 32 (This
minimum value helps branch prediction in __percpu_counter_add())

We already have a hotcpu notifier, so we can adjust FBC_BATCH dynamically.

We rename FBC_BATCH to percpu_counter_batch since its not a constant
anymore.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-06 15:59:13 -08:00
..
acl.c
acl.h
balloc.c Merge branch 'next' into for-linus 2008-12-25 11:40:09 +11:00
bitmap.c
dir.c ext4: Fix duplicate entries returned from getdents() system call 2008-10-25 22:37:55 -04:00
ext4.h percpu_counter: FBC_BATCH should be a variable 2009-01-06 15:59:13 -08:00
ext4_extents.h
ext4_i.h
ext4_jbd2.c
ext4_jbd2.h
ext4_sb.h fs: introduce bgl_lock_ptr() 2009-01-04 13:33:20 -08:00
extents.c
file.c
fsync.c
group.h
hash.c
ialloc.c nfsd race fixes: ext4 2008-12-31 18:07:44 -05:00
inode.c percpu_counter: FBC_BATCH should be a variable 2009-01-06 15:59:13 -08:00
ioctl.c
Kconfig fs/Kconfig: move ext2, ext3, ext4, JBD, JBD2 out 2008-10-20 11:43:59 -07:00
Makefile
mballoc.c ext4: fix missing ext4_unlock_group in error path 2008-11-04 09:10:50 -05:00
mballoc.h ext4: Replace hackish ext4_mb_poll_new_transaction with commit callback 2008-10-16 20:00:24 -04:00
migrate.c
namei.c fs: symlink write_begin allocation context fix 2009-01-04 13:33:20 -08:00
namei.h
resize.c
super.c ext4: Add default allocation routines for quota structures 2009-01-05 08:40:26 -08:00
symlink.c
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c