]> git.neil.brown.name Git - history.git/commit
sysfs: kill struct sysfs_dir.
authorPatrick Mochel <mochel@osdl.org>
Wed, 30 Oct 2002 04:27:36 +0000 (20:27 -0800)
committerPatrick Mochel <mochel@osdl.org>
Wed, 30 Oct 2002 04:27:36 +0000 (20:27 -0800)
commit332ad69da7aca8bdcd3f873bb2bfeb9d9a6d1f98
treeefca0e105baeedb8d1e5fdf55d004f7e9f88a9ec
parenta6c066de9d449b0bbe2efbf6431b19c270e02060
sysfs: kill struct sysfs_dir.

Previously, sysfs read() and write() calls looked for sysfs_ops in the struct
sysfs_dir, in the kobject. Since objects belong to a subsystem, and is a member
of a group of like devices, the sysfs_ops have been moved to struct subsystem,
and are referenced from there.

The only remaining member of struct sysfs_dir is the dentry of the object's
directory. That is moved out of the dir struct and directly into struct kobject.
That saves us 4 bytes/object.

All of the sysfs functions that referenced the struct have been changed to just
reference the dentry.
fs/sysfs/inode.c
include/linux/kobject.h
include/linux/sysfs.h