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
nexedi
linux
Commits
e97cdc87
Commit
e97cdc87
authored
Jan 24, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lookup_fast: get rid of name argument
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
21b9b073
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fs/namei.c
fs/namei.c
+5
-5
No files found.
fs/namei.c
View file @
e97cdc87
...
@@ -1342,7 +1342,7 @@ static struct dentry *__lookup_hash(struct qstr *name,
...
@@ -1342,7 +1342,7 @@ static struct dentry *__lookup_hash(struct qstr *name,
* small and for now I'd prefer to have fast path as straight as possible.
* small and for now I'd prefer to have fast path as straight as possible.
* It _is_ time-critical.
* It _is_ time-critical.
*/
*/
static
int
lookup_fast
(
struct
nameidata
*
nd
,
struct
qstr
*
name
,
static
int
lookup_fast
(
struct
nameidata
*
nd
,
struct
path
*
path
,
struct
inode
**
inode
)
struct
path
*
path
,
struct
inode
**
inode
)
{
{
struct
vfsmount
*
mnt
=
nd
->
path
.
mnt
;
struct
vfsmount
*
mnt
=
nd
->
path
.
mnt
;
...
@@ -1358,7 +1358,7 @@ static int lookup_fast(struct nameidata *nd, struct qstr *name,
...
@@ -1358,7 +1358,7 @@ static int lookup_fast(struct nameidata *nd, struct qstr *name,
*/
*/
if
(
nd
->
flags
&
LOOKUP_RCU
)
{
if
(
nd
->
flags
&
LOOKUP_RCU
)
{
unsigned
seq
;
unsigned
seq
;
dentry
=
__d_lookup_rcu
(
parent
,
name
,
&
seq
,
nd
->
inode
);
dentry
=
__d_lookup_rcu
(
parent
,
&
nd
->
last
,
&
seq
,
nd
->
inode
);
if
(
!
dentry
)
if
(
!
dentry
)
goto
unlazy
;
goto
unlazy
;
...
@@ -1400,7 +1400,7 @@ static int lookup_fast(struct nameidata *nd, struct qstr *name,
...
@@ -1400,7 +1400,7 @@ static int lookup_fast(struct nameidata *nd, struct qstr *name,
if
(
unlazy_walk
(
nd
,
dentry
))
if
(
unlazy_walk
(
nd
,
dentry
))
return
-
ECHILD
;
return
-
ECHILD
;
}
else
{
}
else
{
dentry
=
__d_lookup
(
parent
,
name
);
dentry
=
__d_lookup
(
parent
,
&
nd
->
last
);
}
}
if
(
unlikely
(
!
dentry
))
if
(
unlikely
(
!
dentry
))
...
@@ -1530,7 +1530,7 @@ static inline int walk_component(struct nameidata *nd, struct path *path,
...
@@ -1530,7 +1530,7 @@ static inline int walk_component(struct nameidata *nd, struct path *path,
*/
*/
if
(
unlikely
(
nd
->
last_type
!=
LAST_NORM
))
if
(
unlikely
(
nd
->
last_type
!=
LAST_NORM
))
return
handle_dots
(
nd
,
nd
->
last_type
);
return
handle_dots
(
nd
,
nd
->
last_type
);
err
=
lookup_fast
(
nd
,
&
nd
->
last
,
path
,
&
inode
);
err
=
lookup_fast
(
nd
,
path
,
&
inode
);
if
(
unlikely
(
err
))
{
if
(
unlikely
(
err
))
{
if
(
err
<
0
)
if
(
err
<
0
)
goto
out_err
;
goto
out_err
;
...
@@ -2728,7 +2728,7 @@ static int do_last(struct nameidata *nd, struct path *path,
...
@@ -2728,7 +2728,7 @@ static int do_last(struct nameidata *nd, struct path *path,
if
(
open_flag
&
O_PATH
&&
!
(
nd
->
flags
&
LOOKUP_FOLLOW
))
if
(
open_flag
&
O_PATH
&&
!
(
nd
->
flags
&
LOOKUP_FOLLOW
))
symlink_ok
=
true
;
symlink_ok
=
true
;
/* we _can_ be in RCU mode here */
/* we _can_ be in RCU mode here */
error
=
lookup_fast
(
nd
,
&
nd
->
last
,
path
,
&
inode
);
error
=
lookup_fast
(
nd
,
path
,
&
inode
);
if
(
likely
(
!
error
))
if
(
likely
(
!
error
))
goto
finish_lookup
;
goto
finish_lookup
;
...
...
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