diff options
author | Tejun Heo <htejun@gmail.com> | 2007-06-13 20:45:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 01:09:07 +0200 |
commit | 0b8ead82f5d9d8f08c0d1236f2e350b70a977753 (patch) | |
tree | d725dd9ee12498c84e5efd9da23c9170d3e3400e | |
parent | sysfs: use iget_locked() instead of new_inode() (diff) | |
download | linux-0b8ead82f5d9d8f08c0d1236f2e350b70a977753.tar.xz linux-0b8ead82f5d9d8f08c0d1236f2e350b70a977753.zip |
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>
-rw-r--r-- | fs/sysfs/mount.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 6d3a6249d21c..d0e160307c5d 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c @@ -65,6 +65,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent) iput(inode); return -ENOMEM; } + sysfs_root.s_dentry = root; root->d_fsdata = &sysfs_root; sb->s_root = root; return 0; |