diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 7281746e6532..a5c0c7b6e151 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -630,7 +630,7 @@ rpc_lookup_negative(char *path, struct nameidata *nd) | |||
630 | return ERR_PTR(error); | 630 | return ERR_PTR(error); |
631 | dir = nd->dentry->d_inode; | 631 | dir = nd->dentry->d_inode; |
632 | mutex_lock(&dir->i_mutex); | 632 | mutex_lock(&dir->i_mutex); |
633 | dentry = lookup_hash(nd); | 633 | dentry = lookup_one_len(nd->last.name, nd->dentry, nd->last.len); |
634 | if (IS_ERR(dentry)) | 634 | if (IS_ERR(dentry)) |
635 | goto out_err; | 635 | goto out_err; |
636 | if (dentry->d_inode) { | 636 | if (dentry->d_inode) { |
@@ -692,7 +692,7 @@ rpc_rmdir(char *path) | |||
692 | return error; | 692 | return error; |
693 | dir = nd.dentry->d_inode; | 693 | dir = nd.dentry->d_inode; |
694 | mutex_lock(&dir->i_mutex); | 694 | mutex_lock(&dir->i_mutex); |
695 | dentry = lookup_hash(&nd); | 695 | dentry = lookup_one_len(nd.last.name, nd.dentry, nd.last.len); |
696 | if (IS_ERR(dentry)) { | 696 | if (IS_ERR(dentry)) { |
697 | error = PTR_ERR(dentry); | 697 | error = PTR_ERR(dentry); |
698 | goto out_release; | 698 | goto out_release; |
@@ -753,7 +753,7 @@ rpc_unlink(char *path) | |||
753 | return error; | 753 | return error; |
754 | dir = nd.dentry->d_inode; | 754 | dir = nd.dentry->d_inode; |
755 | mutex_lock(&dir->i_mutex); | 755 | mutex_lock(&dir->i_mutex); |
756 | dentry = lookup_hash(&nd); | 756 | dentry = lookup_one_len(nd.last.name, nd.dentry, nd.last.len); |
757 | if (IS_ERR(dentry)) { | 757 | if (IS_ERR(dentry)) { |
758 | error = PTR_ERR(dentry); | 758 | error = PTR_ERR(dentry); |
759 | goto out_release; | 759 | goto out_release; |