[PATCH] procfs : reorder struct pid_dentry to save space on 64bit archs, and constify them

2007-03-08 Thread Eric Dumazet
This patches changes 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) It also changes all pid_entry arrays to be const qualified, to make clear they must not be modified. Before (on x86_64) : # size

[PATCH] procfs : reorder struct pid_dentry to save space on 64bit archs, and constify them

2007-03-08 Thread Eric Dumazet
This patches changes 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) It also changes all pid_entry arrays to be const qualified, to make clear they must not be modified. Before (on x86_64) : # size