]> err.no Git - linux-2.6/commitdiff
sysfs: fix root sysfs_dirent -> root dentry association
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 18:45:18 +0000 (03:45 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:07 +0000 (16:09 -0700)
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>
fs/sysfs/mount.c

index 6d3a6249d21cf6e708523bc905bbfb64e4128656..d0e160307c5dba54eceb086885ae3c7efd939efa 100644 (file)
@@ -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;