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
8089352a
Commit
8089352a
authored
Feb 05, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mirror MS_KERNMOUNT in ->mnt_flags
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d498b25a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
fs/namespace.c
fs/namespace.c
+1
-1
fs/super.c
fs/super.c
+3
-0
include/linux/mount.h
include/linux/mount.h
+2
-0
No files found.
fs/namespace.c
View file @
8089352a
...
...
@@ -1701,7 +1701,7 @@ int do_add_mount(struct vfsmount *newmnt, struct path *path,
{
int
err
;
mnt_flags
&=
~
(
MNT_SHARED
|
MNT_WRITE_HOLD
);
mnt_flags
&=
~
(
MNT_SHARED
|
MNT_WRITE_HOLD
|
MNT_INTERNAL
);
down_write
(
&
namespace_sem
);
/* Something was mounted here while we slept */
...
...
fs/super.c
View file @
8089352a
...
...
@@ -937,6 +937,9 @@ vfs_kern_mount(struct file_system_type *type, int flags, const char *name, void
if
(
!
mnt
)
goto
out
;
if
(
flags
&
MS_KERNMOUNT
)
mnt
->
mnt_flags
=
MNT_INTERNAL
;
if
(
data
&&
!
(
type
->
fs_flags
&
FS_BINARY_MOUNTDATA
))
{
secdata
=
alloc_secdata
();
if
(
!
secdata
)
...
...
include/linux/mount.h
View file @
8089352a
...
...
@@ -45,6 +45,8 @@ struct mnt_namespace;
#define MNT_PROPAGATION_MASK (MNT_SHARED | MNT_UNBINDABLE)
#define MNT_INTERNAL 0x4000
struct
vfsmount
{
struct
list_head
mnt_hash
;
struct
vfsmount
*
mnt_parent
;
/* fs we are mounted on */
...
...
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