diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 07:50:07 +0100 |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 07:50:32 +0100 |
commit | 4b936885ab04dc6e0bb0ef35e0e23c1a7364d9e5 (patch) | |
tree | a0173d27c1ce39f173be404d269c2f15144072ab /fs/pipe.c | |
parent | fs: dcache per-inode inode alias locking (diff) | |
download | linux-4b936885ab04dc6e0bb0ef35e0e23c1a7364d9e5.tar.xz linux-4b936885ab04dc6e0bb0ef35e0e23c1a7364d9e5.zip |
fs: improve scalability of pseudo filesystems
Regardless of how much we possibly try to scale dcache, there is likely
always going to be some fundamental contention when adding or removing children
under the same parent. Pseudo filesystems do not seem need to have connected
dentries because by definition they are disconnected.
Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Diffstat (limited to 'fs/pipe.c')
-rw-r--r-- | fs/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pipe.c b/fs/pipe.c index 01a786567810..cfe3a7f2ee21 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -999,7 +999,7 @@ struct file *create_write_pipe(int flags) goto err; err = -ENOMEM; - path.dentry = d_alloc(pipe_mnt->mnt_sb->s_root, &name); + path.dentry = d_alloc_pseudo(pipe_mnt->mnt_sb, &name); if (!path.dentry) goto err_inode; path.mnt = mntget(pipe_mnt); |