提交 0b8ead82 编写于 作者: T Tejun Heo 提交者: Greg Kroah-Hartman

sysfs: fix root sysfs_dirent -> root dentry association

The root sysfs_dirent didn't point to the root dentry fix it.
Signed-off-by: NTejun Heo <htejun@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 8312a8d7
...@@ -65,6 +65,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -65,6 +65,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
iput(inode); iput(inode);
return -ENOMEM; return -ENOMEM;
} }
sysfs_root.s_dentry = root;
root->d_fsdata = &sysfs_root; root->d_fsdata = &sysfs_root;
sb->s_root = root; sb->s_root = root;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册