aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/inode.c
diff options
context:
space:
mode:
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