Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185727
b: refs/heads/master
c: 8089352
h: refs/heads/master
i:
  185725: 48dacd9
  185723: a47c19a
  185719: 1b407ef
  185711: 798dcf0
  185695: a5098c3
  185663: 7834d4c
  185599: 470f89e
v: v3
  • Loading branch information
Al Viro committed Mar 3, 2010
1 parent 5fb4f59 commit 3a939f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d498b25a4f877be535246c4e5b6ee5890781a477
refs/heads/master: 8089352a13b785d4e0df63d87bd2b71c76bb9aee
2 changes: 1 addition & 1 deletion trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 3 additions & 0 deletions trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3a939f9

Please sign in to comment.