diff options
author | Tejun Heo <htejun@gmail.com> | 2007-09-20 03:05:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:51:11 -0400 |
commit | bc747f37a0f089b9366f7385ff870e12911f2383 (patch) | |
tree | b23e81c5136486bc081770dd83595e658437ace8 /fs/sysfs/inode.c | |
parent | dc2f75f0e0cac645c22c85bcf429683b3fa0d2d9 (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.c | 2 |
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 | ||