| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/fs/pnode.h |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * (C) Copyright IBM Corporation 2005. |
|---|
| 5 | | - * Released under GPL v2. |
|---|
| 6 | | - * |
|---|
| 7 | 6 | */ |
|---|
| 8 | 7 | #ifndef _LINUX_PNODE_H |
|---|
| 9 | 8 | #define _LINUX_PNODE_H |
|---|
| .. | .. |
|---|
| 13 | 12 | |
|---|
| 14 | 13 | #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED) |
|---|
| 15 | 14 | #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)) |
|---|
| 17 | 16 | #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED) |
|---|
| 18 | 17 | #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE) |
|---|
| 19 | 18 | #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED) |
|---|
| .. | .. |
|---|
| 27 | 26 | #define CL_MAKE_SHARED 0x08 |
|---|
| 28 | 27 | #define CL_PRIVATE 0x10 |
|---|
| 29 | 28 | #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 |
|---|
| 32 | 30 | |
|---|
| 33 | 31 | #define CL_COPY_ALL (CL_COPY_UNBINDABLE | CL_COPY_MNT_NS_FILE) |
|---|
| 34 | 32 | |
|---|
| .. | .. |
|---|
| 44 | 42 | int propagate_umount(struct list_head *); |
|---|
| 45 | 43 | int propagate_mount_busy(struct mount *, int); |
|---|
| 46 | 44 | void propagate_mount_unlock(struct mount *); |
|---|
| 47 | | -void propagate_remount(struct mount *); |
|---|
| 48 | 45 | void mnt_release_group_id(struct mount *); |
|---|
| 49 | 46 | 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); |
|---|
| 51 | 48 | void mnt_set_mountpoint(struct mount *, struct mountpoint *, |
|---|
| 52 | 49 | struct mount *); |
|---|
| 53 | 50 | void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp, |
|---|