Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
79ed0226
Commit
79ed0226
authored
Apr 18, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch follow_mount()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9393bd07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
fs/namei.c
fs/namei.c
+8
-8
No files found.
fs/namei.c
View file @
79ed0226
...
...
@@ -715,16 +715,16 @@ static int __follow_mount(struct path *path)
return
res
;
}
static
void
follow_mount
(
struct
vfsmount
**
mnt
,
struct
dentry
**
dentry
)
static
void
follow_mount
(
struct
path
*
path
)
{
while
(
d_mountpoint
(
*
dentry
))
{
struct
vfsmount
*
mounted
=
lookup_mnt
(
*
mnt
,
*
dentry
);
while
(
d_mountpoint
(
path
->
dentry
))
{
struct
vfsmount
*
mounted
=
lookup_mnt
(
path
->
mnt
,
path
->
dentry
);
if
(
!
mounted
)
break
;
dput
(
*
dentry
);
mntput
(
*
mnt
);
*
mnt
=
mounted
;
*
dentry
=
dget
(
mounted
->
mnt_root
);
dput
(
path
->
dentry
);
mntput
(
path
->
mnt
);
path
->
mnt
=
mounted
;
path
->
dentry
=
dget
(
mounted
->
mnt_root
);
}
}
...
...
@@ -779,7 +779,7 @@ static __always_inline void follow_dotdot(struct nameidata *nd)
mntput
(
nd
->
path
.
mnt
);
nd
->
path
.
mnt
=
parent
;
}
follow_mount
(
&
nd
->
path
.
mnt
,
&
nd
->
path
.
dentry
);
follow_mount
(
&
nd
->
path
);
}
/*
...
...
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