Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
odroid-linux-3.10.y-rt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oai
odroid-linux-3.10.y-rt
Commits
61ef47b1
Commit
61ef47b1
authored
Nov 24, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfs: spread struct mount - __propagate_umount() argument
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c7105365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
fs/pnode.c
fs/pnode.c
+7
-7
No files found.
fs/pnode.c
View file @
61ef47b1
...
...
@@ -319,24 +319,24 @@ int propagate_mount_busy(struct vfsmount *mnt, int refcnt)
* NOTE: unmounting 'mnt' naturally propagates to all other mounts its
* parent propagates to.
*/
static
void
__propagate_umount
(
struct
vfs
mount
*
mnt
)
static
void
__propagate_umount
(
struct
mount
*
mnt
)
{
struct
vfsmount
*
parent
=
mnt
->
mnt_parent
;
struct
vfsmount
*
parent
=
mnt
->
mnt
.
mnt
_parent
;
struct
vfsmount
*
m
;
BUG_ON
(
parent
==
mnt
);
BUG_ON
(
parent
==
&
mnt
->
mnt
);
for
(
m
=
propagation_next
(
parent
,
parent
);
m
;
m
=
propagation_next
(
m
,
parent
))
{
struct
mount
*
child
=
__lookup_mnt
(
m
,
mnt
->
mnt_mountpoint
,
0
);
mnt
->
mnt
.
mnt
_mountpoint
,
0
);
/*
* umount the child only if the child has no
* other children
*/
if
(
child
&&
list_empty
(
&
child
->
mnt
.
mnt_mounts
))
list_move_tail
(
&
child
->
mnt
.
mnt_hash
,
&
mnt
->
mnt_hash
);
list_move_tail
(
&
child
->
mnt
.
mnt_hash
,
&
mnt
->
mnt
.
mnt
_hash
);
}
}
...
...
@@ -349,9 +349,9 @@ static void __propagate_umount(struct vfsmount *mnt)
*/
int
propagate_umount
(
struct
list_head
*
list
)
{
struct
vfs
mount
*
mnt
;
struct
mount
*
mnt
;
list_for_each_entry
(
mnt
,
list
,
mnt_hash
)
list_for_each_entry
(
mnt
,
list
,
mnt
.
mnt
_hash
)
__propagate_umount
(
mnt
);
return
0
;
}
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