]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Pack sysfs_dirent more tightly.
authorEric W. Biederman <ebiederm@aristanetworks.com>
Sat, 13 Feb 2010 03:22:24 +0000 (19:22 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:52 +0000 (17:04 -0800)
commita9ea4576da129729922e89b26e62eb57c9747395
treea724445bc46a4500ff6c4def2a6de39fc438f8b5
parentb82a173395e8e3b6a01c68dc08d4849c13c28ca4
sysfs: Pack sysfs_dirent more tightly.

Placing the 16bit s_mode between a pointer and a long doesn't pack well
especailly on 64bit where we wast 48 bits.  So move s_mode and
declare it as a unsigned short.  This is the sysfs backing store
after all we don't need fields extra large just in case someday
we want userspace to be able to use a larger value.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/sysfs.h