Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b5bb61da
Commit
b5bb61da
authored
Aug 09, 2009
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: Clean up rpc_pipefs lookup code...
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
7364af6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
net/sunrpc/rpc_pipe.c
net/sunrpc/rpc_pipe.c
+10
-5
No files found.
net/sunrpc/rpc_pipe.c
View file @
b5bb61da
...
...
@@ -484,12 +484,12 @@ static const struct dentry_operations rpc_dentry_operations = {
.
d_delete
=
rpc_delete_dentry
,
};
static
int
rpc_lookup_parent
(
char
*
path
,
struct
nameidata
*
nd
)
static
int
__rpc_lookup_path
(
const
char
*
pathname
,
unsigned
flags
,
struct
nameidata
*
nd
)
{
struct
vfsmount
*
mnt
;
if
(
path
[
0
]
==
'\0'
)
if
(
path
name
[
0
]
==
'\0'
)
return
-
ENOENT
;
mnt
=
rpc_get_mount
();
...
...
@@ -499,15 +499,20 @@ rpc_lookup_parent(char *path, struct nameidata *nd)
return
PTR_ERR
(
mnt
);
}
if
(
vfs_path_lookup
(
mnt
->
mnt_root
,
mnt
,
path
,
LOOKUP_PARENT
,
nd
))
{
if
(
vfs_path_lookup
(
mnt
->
mnt_root
,
mnt
,
path
name
,
flags
,
nd
))
{
printk
(
KERN_WARNING
"%s: %s failed to find path %s
\n
"
,
__FILE__
,
__func__
,
path
);
__FILE__
,
__func__
,
path
name
);
rpc_put_mount
();
return
-
ENOENT
;
}
return
0
;
}
static
int
rpc_lookup_parent
(
const
char
*
pathname
,
struct
nameidata
*
nd
)
{
return
__rpc_lookup_path
(
pathname
,
LOOKUP_PARENT
,
nd
);
}
static
void
rpc_release_path
(
struct
nameidata
*
nd
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment