]> git.hungrycats.org Git - linux/commit
[PATCH] use alloc_percpu in percpu_counters
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:45:53 +0000 (05:45 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:45:53 +0000 (05:45 -0800)
commit22565897da1265120070ed8d7f534bddd37f1a69
treecee4068e9a554b2e81ad9ffa3fe8f40049ab8575
parent55e8b1a195a813abfb91fae221c481c0fa77b55f
[PATCH] use alloc_percpu in percpu_counters

From: Martin Hicks <mort@wildopensource.com>

Once NR_CPUS exceeds about 300 ext2 and ext3 will not compile, because the
percpu counters in the superblocks are so huge that they cannot be kmalloced.

Fix this by converting the percpu_counter mechanism to use alloc_percpu()
rather than an NR_CPUS-sized array.
include/linux/percpu_counter.h
mm/swap.c