diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2011-12-19 05:08:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-24 21:41:46 +0100 |
commit | cafa6b5dd7ce4f0e0a30be301be4efed587a7808 (patch) | |
tree | 47200ffb5c660280ebe734b29662c12df24d7ab5 /fs/sysfs/sysfs.h | |
parent | sysfs: Reduce s_flags to an unsinged short so it packs well with s_mode (diff) | |
download | linux-cafa6b5dd7ce4f0e0a30be301be4efed587a7808.tar.xz linux-cafa6b5dd7ce4f0e0a30be301be4efed587a7808.zip |
sysfs: Store the sysfs inode in an unsigned int.
Store the sysfs inode number in an unsided int because
ida inode allocator can return at most a 31 bit number,
reducing the size of struct sysfs_dirent by 8 bytes
on 64bit platforms.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
-rw-r--r-- | fs/sysfs/sysfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 19994948ac5c..661a9639570b 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h @@ -79,7 +79,7 @@ struct sysfs_dirent { unsigned short s_flags; umode_t s_mode; - ino_t s_ino; + unsigned int s_ino; struct sysfs_inode_attrs *s_iattr; }; |