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
cbbe362c
Commit
cbbe362c
authored
Nov 24, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfs: spread struct mount - tree_contains_unbindable
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0fb54e50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/namespace.c
fs/namespace.c
+3
-3
No files found.
fs/namespace.c
View file @
cbbe362c
...
@@ -1845,10 +1845,10 @@ static int do_remount(struct path *path, int flags, int mnt_flags,
...
@@ -1845,10 +1845,10 @@ static int do_remount(struct path *path, int flags, int mnt_flags,
return
err
;
return
err
;
}
}
static
inline
int
tree_contains_unbindable
(
struct
vfs
mount
*
mnt
)
static
inline
int
tree_contains_unbindable
(
struct
mount
*
mnt
)
{
{
struct
mount
*
p
;
struct
mount
*
p
;
for
(
p
=
real_mount
(
mnt
);
p
;
p
=
next_mnt
(
p
,
mnt
))
{
for
(
p
=
mnt
;
p
;
p
=
next_mnt
(
p
,
&
mnt
->
mnt
))
{
if
(
IS_MNT_UNBINDABLE
(
&
p
->
mnt
))
if
(
IS_MNT_UNBINDABLE
(
&
p
->
mnt
))
return
1
;
return
1
;
}
}
...
@@ -1902,7 +1902,7 @@ static int do_move_mount(struct path *path, char *old_name)
...
@@ -1902,7 +1902,7 @@ static int do_move_mount(struct path *path, char *old_name)
* mount which is shared.
* mount which is shared.
*/
*/
if
(
IS_MNT_SHARED
(
path
->
mnt
)
&&
if
(
IS_MNT_SHARED
(
path
->
mnt
)
&&
tree_contains_unbindable
(
old
_path
.
mnt
))
tree_contains_unbindable
(
old
))
goto
out1
;
goto
out1
;
err
=
-
ELOOP
;
err
=
-
ELOOP
;
for
(
p
=
path
->
mnt
;
mnt_has_parent
(
p
);
p
=
p
->
mnt_parent
)
for
(
p
=
path
->
mnt
;
mnt_has_parent
(
p
);
p
=
p
->
mnt_parent
)
...
...
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