• Andrew Morton's avatar
    [PATCH] use alloc_percpu in percpu_counters · 22565897
    Andrew Morton authored
    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.
    22565897
swap.c 10.4 KB