Files
tegra-linux-noble/include/linux
Pekka J Enberg 18a82eb9f9 ext2: allocate ->s_blockgroup_lock separately
As spotted by kmemtrace, struct ext2_sb_info is 17024 bytes on 64-bit
which makes it a very bad fit for SLAB allocators.  The culprit of the
wasted memory is ->s_blockgroup_lock which can be as big as 16 KB when
NR_CPUS >= 32.

To fix that, allocate ->s_blockgroup_lock, which fits nicely in a order 2
page in the worst case, separately.  This shinks down struct ext2_sb_info
enough to fit a 1 KB slab cache so now we allocate 16 KB + 1 KB instead of
32 KB saving 15 KB of memory.

Acked-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-08 08:31:00 -08:00
..
2009-01-04 12:17:42 +01:00
2009-01-07 17:38:32 -05:00
2009-01-06 15:59:29 -08:00
2009-01-01 10:12:19 +10:30
2009-01-04 13:33:20 -08:00
2009-01-06 15:59:01 -08:00
2009-01-02 12:19:34 -08:00
2009-01-04 13:33:20 -08:00
2009-01-06 15:59:01 -08:00
2009-01-07 14:29:17 +01:00
2009-01-05 08:40:30 -08:00
2009-01-05 08:40:30 -08:00
2009-01-03 14:11:07 +01:00
2009-01-06 15:58:58 -08:00
2009-01-04 16:13:40 -08:00
2009-01-07 17:38:31 -05:00
2009-01-06 10:44:30 -08:00
2009-01-06 15:59:12 -08:00
2009-01-05 18:31:12 -08:00
2009-01-04 13:33:20 -08:00
2009-01-07 09:58:22 +11:00
2009-01-01 10:12:25 +10:30
2009-01-02 10:19:36 -08:00
2009-01-07 10:00:14 -08:00
2009-01-06 15:59:09 -08:00