]> Pileus Git - ~andy/linux/blobdiff - fs/anon_inodes.c
fs: improve scalability of pseudo filesystems
[~andy/linux] / fs / anon_inodes.c
index aca8806fa20697551b89d11bc00d7220338ce085..9d92b33da8a0c1286bb9144a9f86c68c0d36a750 100644 (file)
@@ -102,7 +102,7 @@ struct file *anon_inode_getfile(const char *name,
        this.name = name;
        this.len = strlen(name);
        this.hash = 0;
-       path.dentry = d_alloc(anon_inode_mnt->mnt_sb->s_root, &this);
+       path.dentry = d_alloc_pseudo(anon_inode_mnt->mnt_sb, &this);
        if (!path.dentry)
                goto err_module;