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
edd0987b
Commit
edd0987b
authored
Jun 17, 2002
by
Andries E. Brouwer
Committed by
Linus Torvalds
Jun 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove path_init
It looks like there are no in-tree users of path_init. Maybe it can be removed.
parent
17a2e5b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
fs/namei.c
fs/namei.c
+0
-16
No files found.
fs/namei.c
View file @
edd0987b
...
@@ -832,22 +832,6 @@ walk_init_root(const char *name, struct nameidata *nd)
...
@@ -832,22 +832,6 @@ walk_init_root(const char *name, struct nameidata *nd)
return
1
;
return
1
;
}
}
/* SMP-safe */
int
path_init
(
const
char
*
name
,
unsigned
int
flags
,
struct
nameidata
*
nd
)
{
nd
->
last_type
=
LAST_ROOT
;
/* if there are only slashes... */
nd
->
old_mnt
=
NULL
;
nd
->
old_dentry
=
NULL
;
nd
->
flags
=
flags
;
if
(
*
name
==
'/'
)
return
walk_init_root
(
name
,
nd
);
read_lock
(
&
current
->
fs
->
lock
);
nd
->
mnt
=
mntget
(
current
->
fs
->
pwdmnt
);
nd
->
dentry
=
dget
(
current
->
fs
->
pwd
);
read_unlock
(
&
current
->
fs
->
lock
);
return
1
;
}
int
path_lookup
(
const
char
*
name
,
unsigned
int
flags
,
struct
nameidata
*
nd
)
int
path_lookup
(
const
char
*
name
,
unsigned
int
flags
,
struct
nameidata
*
nd
)
{
{
nd
->
last_type
=
LAST_ROOT
;
/* if there are only slashes... */
nd
->
last_type
=
LAST_ROOT
;
/* if there are only slashes... */
...
...
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