From: Eric Dumazet Date: Tue, 8 May 2007 07:26:15 +0000 (-0700) Subject: procfs: reorder struct pid_dentry to save space on 64bit archs, and constify them X-Git-Tag: v2.6.22-rc1~744 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5141e6d64ab5c48a5e31413c7a6cdda84ac1d52;p=pandora-kernel.git procfs: reorder struct pid_dentry to save space on 64bit archs, and constify them Change the order of fields of struct pid_entry (file fs/proc/base.c) in order to avoid a hole on 64bit archs. (8 bytes saved per object) Also change all pid_entry arrays to be const qualified, to make clear they must not be modified. Before (on x86_64) : # size fs/proc/base.o text data bss dec hex filename 15549 2192 0 17741 454d fs/proc/base.o After : # size fs/proc/base.o text data bss dec hex filename 17229 176 0 17405 43fd fs/proc/base.o Thats 336 bytes saved on kernel size on x86_64 Signed-off-by: Eric Dumazet Acked-by: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed