mnt: Don't propagate unmounts to locked mounts
[firefly-linux-kernel-4.4.55.git] / fs / pnode.h
index aa6d65df7204a8a8cf4afba3b3df85941b2a717d..0fcdbe7ca6480e7950092cfd0dc7d0ce431ef548 100644 (file)
@@ -19,6 +19,7 @@
 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED)
 #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED)
 #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED)
+#define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED)
 
 #define CL_EXPIRE              0x01
 #define CL_SLAVE               0x02
@@ -42,6 +43,7 @@ int propagate_mnt(struct mount *, struct mountpoint *, struct mount *,
                struct hlist_head *);
 int propagate_umount(struct list_head *);
 int propagate_mount_busy(struct mount *, int);
+void propagate_mount_unlock(struct mount *);
 void mnt_release_group_id(struct mount *);
 int get_dominating_id(struct mount *mnt, const struct path *root);
 unsigned int mnt_get_count(struct mount *mnt);