mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
f8d4f618fe
commit
19c38b632d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue