mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]>
This commit is contained in:
parent
873feea09e
commit
4b936885ab
5 changed files with 16 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue