aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/inode.c
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/inode.c
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/inode.c')
-rw-r--r--fs/sysfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c
index c40fb9fdd04c..2210cf0005fe 100644
--- a/fs/sysfs/inode.c
+++ b/fs/sysfs/inode.c
@@ -127,7 +127,7 @@ static int sysfs_count_nlink(struct sysfs_dirent *sd)
127 struct sysfs_dirent *child; 127 struct sysfs_dirent *child;
128 int nr = 0; 128 int nr = 0;
129 129
130 for (child = sd->s_children; child; child = child->s_sibling) 130 for (child = sd->s_dir.children; child; child = child->s_sibling)
131 if (sysfs_type(child) == SYSFS_DIR) 131 if (sysfs_type(child) == SYSFS_DIR)
132 nr++; 132 nr++;
133 133