4 * (C) Copyright IBM Corporation 2005.
5 * Released under GPL v2.
6 * Author : Ram Pai (linuxram@us.ibm.com)
9 #include <linux/namespace.h>
10 #include <linux/mount.h>
14 /* return the next shared peer mount of @p */
15 static inline struct vfsmount *next_peer(struct vfsmount *p)
17 return list_entry(p->mnt_share.next, struct vfsmount, mnt_share);
20 void change_mnt_propagation(struct vfsmount *mnt, int type)
22 if (type == MS_SHARED) {
23 mnt->mnt_flags |= MNT_SHARED;
25 list_del_init(&mnt->mnt_share);
26 mnt->mnt_flags &= ~MNT_PNODE_MASK;