summaryrefslogtreecommitdiffstats
path: root/fs/openpromfs
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-05-08 09:26:15 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 20:15:03 +0200
commitc5141e6d64ab5c48a5e31413c7a6cdda84ac1d52 (patch)
tree95a93ed2f56e98f6b6659ab906faee7abb252a49 /fs/openpromfs
parentdrivers/char/synclink.c: check kmalloc() return value (diff)
downloadlinux-c5141e6d64ab5c48a5e31413c7a6cdda84ac1d52.tar.xz
linux-c5141e6d64ab5c48a5e31413c7a6cdda84ac1d52.zip
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 <dada1@cosmosbay.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/openpromfs')
0 files changed, 0 insertions, 0 deletions