Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185709
b: refs/heads/master
c: 495d6c9
h: refs/heads/master
i:
  185707: 334a265
v: v3
  • Loading branch information
Valerie Aurora authored and Al Viro committed Mar 3, 2010
1 parent f8d7317 commit 4be205a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 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: 2ecdc82ef0b03e67ce5ecee79d0d108177a704df
refs/heads/master: 495d6c9c6595ec7b37910dfd42634839431d21fd
2 changes: 1 addition & 1 deletion trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ static int do_remount(struct path *path, int flags, int mnt_flags,
err = do_remount_sb(sb, flags, data, 0);
if (!err) {
spin_lock(&vfsmount_lock);
mnt_flags |= path->mnt->mnt_flags & MNT_PNODE_MASK;
mnt_flags |= path->mnt->mnt_flags & MNT_PROPAGATION_MASK;
path->mnt->mnt_flags = mnt_flags;
spin_unlock(&vfsmount_lock);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/pnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

static inline void set_mnt_shared(struct vfsmount *mnt)
{
mnt->mnt_flags &= ~MNT_PNODE_MASK;
mnt->mnt_flags &= ~MNT_SHARED_MASK;
mnt->mnt_flags |= MNT_SHARED;
}

Expand Down
11 changes: 10 additions & 1 deletion trunk/include/linux/mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ struct mnt_namespace;

#define MNT_SHARED 0x1000 /* if the vfsmount is a shared mount */
#define MNT_UNBINDABLE 0x2000 /* if the vfsmount is a unbindable mount */
#define MNT_PNODE_MASK 0x3000 /* propagation flag mask */
/*
* MNT_SHARED_MASK is the set of flags that should be cleared when a
* mount becomes shared. Currently, this is only the flag that says a
* mount cannot be bind mounted, since this is how we create a mount
* that shares events with another mount. If you add a new MNT_*
* flag, consider how it interacts with shared mounts.
*/
#define MNT_SHARED_MASK (MNT_UNBINDABLE)
#define MNT_PROPAGATION_MASK (MNT_SHARED | MNT_UNBINDABLE)


struct vfsmount {
struct list_head mnt_hash;
Expand Down

0 comments on commit 4be205a

Please sign in to comment.