On Fri, Jun 13, 2014 at 11:03:38PM +0300, Alexey Dobriyan wrote:
> static struct dentry *proc_root_lookup(struct inode * dir, struct dentry *
> dentry, unsigned int flags)
> {
> - if (!proc_lookup(dir, dentry, flags))
> - return NULL;
> -
> - return proc_pid_lookup(dir,
Use first character as a hint for /proc/$PID lookup.
Currently it takes one spinlock and search through dozens of
misc proc entries which can not match /proc/$PID.
Signed-off-by: Alexey Dobriyan
---
fs/proc/root.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
--- a/
2 matches
Mail list logo