summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/sysfs.h
diff options
context:
space:
mode:
authorTejun Heo2007-09-20 09:05:12 +0200
committerGreg Kroah-Hartman2007-10-12 23:51:11 +0200
commitbc747f37a0f089b9366f7385ff870e12911f2383 (patch)
treeb23e81c5136486bc081770dd83595e658437ace8 /fs/sysfs/sysfs.h
parentsysfs: make sysfs_root a regular directory dirent (diff)
downloadkernel-qcow2-linux-bc747f37a0f089b9366f7385ff870e12911f2383.tar.gz
kernel-qcow2-linux-bc747f37a0f089b9366f7385ff870e12911f2383.tar.xz
kernel-qcow2-linux-bc747f37a0f089b9366f7385ff870e12911f2383.zip
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 @@
/* type-specific structures for sysfs_dirent->s_* union members */
struct sysfs_elem_dir {
struct kobject *kobj;
+ /* children list starts here and goes through sd->s_sibling */
+ struct sysfs_dirent *children;
};
struct sysfs_elem_symlink {
@@ -28,7 +30,6 @@ struct sysfs_dirent {
atomic_t s_active;
struct sysfs_dirent *s_parent;
struct sysfs_dirent *s_sibling;
- struct sysfs_dirent *s_children;
const char *s_name;
union {