hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/fs/pnode.h
....@@ -1,9 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/fs/pnode.h
34 *
45 * (C) Copyright IBM Corporation 2005.
5
- * Released under GPL v2.
6
- *
76 */
87 #ifndef _LINUX_PNODE_H
98 #define _LINUX_PNODE_H
....@@ -13,7 +12,7 @@
1312
1413 #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED)
1514 #define IS_MNT_SLAVE(m) ((m)->mnt_master)
16
-#define IS_MNT_NEW(m) (!(m)->mnt_ns)
15
+#define IS_MNT_NEW(m) (!(m)->mnt_ns || is_anon_ns((m)->mnt_ns))
1716 #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED)
1817 #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE)
1918 #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED)
....@@ -27,8 +26,7 @@
2726 #define CL_MAKE_SHARED 0x08
2827 #define CL_PRIVATE 0x10
2928 #define CL_SHARED_TO_SLAVE 0x20
30
-#define CL_UNPRIVILEGED 0x40
31
-#define CL_COPY_MNT_NS_FILE 0x80
29
+#define CL_COPY_MNT_NS_FILE 0x40
3230
3331 #define CL_COPY_ALL (CL_COPY_UNBINDABLE | CL_COPY_MNT_NS_FILE)
3432
....@@ -44,10 +42,9 @@
4442 int propagate_umount(struct list_head *);
4543 int propagate_mount_busy(struct mount *, int);
4644 void propagate_mount_unlock(struct mount *);
47
-void propagate_remount(struct mount *);
4845 void mnt_release_group_id(struct mount *);
4946 int get_dominating_id(struct mount *mnt, const struct path *root);
50
-unsigned int mnt_get_count(struct mount *mnt);
47
+int mnt_get_count(struct mount *mnt);
5148 void mnt_set_mountpoint(struct mount *, struct mountpoint *,
5249 struct mount *);
5350 void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp,