commit | 0b8ead82f5d9d8f08c0d1236f2e350b70a977753 | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Thu Jun 14 03:45:18 2007 +0900 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed Jul 11 16:09:07 2007 -0700 |
tree | d725dd9ee12498c84e5efd9da23c9170d3e3400e | |
parent | 8312a8d7c1d19d31027bd4ca127ce671962c23d4 [diff] |
sysfs: fix root sysfs_dirent -> root dentry association The root sysfs_dirent didn't point to the root dentry fix it. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 6d3a624..d0e1603 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c
@@ -65,6 +65,7 @@ iput(inode); return -ENOMEM; } + sysfs_root.s_dentry = root; root->d_fsdata = &sysfs_root; sb->s_root = root; return 0;