提交 19c38b63 编写于 作者: E Eric W. Biederman 提交者: Greg Kroah-Hartman

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: NTejun Heo <tj@kernel.org>
Signed-off-by: NEric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 f8d4f618
......@@ -66,8 +66,8 @@ struct sysfs_dirent {
};
unsigned int s_flags;
unsigned short s_mode;
ino_t s_ino;
umode_t s_mode;
struct sysfs_inode_attrs *s_iattr;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册