aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/inode.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-09-20 16:05:12 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 14:51:11 -0700
commitbc747f37a0f089b9366f7385ff870e12911f2383 (patch)
treeb23e81c5136486bc081770dd83595e658437ace8 /fs/sysfs/inode.c
parentsysfs: make sysfs_root a regular directory dirent (diff)
downloadlinux-dev-bc747f37a0f089b9366f7385ff870e12911f2383.tar.xz
linux-dev-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/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)
struct sysfs_dirent *child;
int nr = 0;
- for (child = sd->s_children; child; child = child->s_sibling)
+ for (child = sd->s_dir.children; child; child = child->s_sibling)
if (sysfs_type(child) == SYSFS_DIR)
nr++;