From: Eric Dumazet Date: Sat, 25 Mar 2006 15:31:46 +0000 (+0100) Subject: [PATCH] x86_64: group memnodemap and memnodeshift in a memnode structure X-Git-Tag: v2.6.17-rc1~675 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcf36bfa5de6d4e37878d4c98b6986fee4eb8b4c;p=pandora-kernel.git [PATCH] x86_64: group memnodemap and memnodeshift in a memnode structure pfn_to_page() and others need to access both memnode_shift and the very first bytes of memnodemap[]. If we force memnode_shift to be just before the memnodemap array, we can reduce the memory footprint to one cache line instead of two for most setups. This patch introduce a 'memnode' structure where shift and map[] are carefully placed. Signed-off-by: Eric Dumazet Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed