aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/sysfs.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-09-20 03:05:12 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:51:11 -0400
commitbc747f37a0f089b9366f7385ff870e12911f2383 (patch)
treeb23e81c5136486bc081770dd83595e658437ace8 /fs/sysfs/sysfs.h
parentdc2f75f0e0cac645c22c85bcf429683b3fa0d2d9 (diff)
sysfs: move sysfs_dirent->s_children into sysfs_dirent->s_dir
Children list head is only meaninful for directory nodes. Move it into s_dir. This doesn't save any space currently but it will with further changes. Signed-off-by: Tejun Heo <htejun@gmail.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r--fs/sysfs/sysfs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h
index 60405a6e4c22..42b0327d1624 100644
--- a/fs/sysfs/sysfs.h
+++ b/fs/sysfs/sysfs.h
@@ -1,6 +1,8 @@
1/* type-specific structures for sysfs_dirent->s_* union members */ 1/* type-specific structures for sysfs_dirent->s_* union members */
2struct sysfs_elem_dir { 2struct sysfs_elem_dir {
3 struct kobject *kobj; 3 struct kobject *kobj;
4 /* children list starts here and goes through sd->s_sibling */
5 struct sysfs_dirent *children;
4}; 6};
5 7
6struct sysfs_elem_symlink { 8struct sysfs_elem_symlink {
@@ -28,7 +30,6 @@ struct sysfs_dirent {
28 atomic_t s_active; 30 atomic_t s_active;
29 struct sysfs_dirent *s_parent; 31 struct sysfs_dirent *s_parent;
30 struct sysfs_dirent *s_sibling; 32 struct sysfs_dirent *s_sibling;
31 struct sysfs_dirent *s_children;
32 const char *s_name; 33 const char *s_name;
33 34
34 union { 35 union {