linux/fs/pnode.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 *  linux/fs/pnode.h
 *
 * (C) Copyright IBM Corporation 2005.
 */
#ifndef _LINUX_PNODE_H
#define _LINUX_PNODE_H

#include <linux/list.h>
#include "mount.h"

#define IS_MNT_SHARED(m)
#define IS_MNT_SLAVE(m)
#define IS_MNT_NEW(m)
#define CLEAR_MNT_SHARED(m)
#define IS_MNT_UNBINDABLE(m)
#define IS_MNT_MARKED(m)
#define SET_MNT_MARK(m)
#define CLEAR_MNT_MARK(m)
#define IS_MNT_LOCKED(m)

#define CL_EXPIRE
#define CL_SLAVE
#define CL_COPY_UNBINDABLE
#define CL_MAKE_SHARED
#define CL_PRIVATE
#define CL_SHARED_TO_SLAVE
#define CL_COPY_MNT_NS_FILE

#define CL_COPY_ALL

static inline void set_mnt_shared(struct mount *mnt)
{}

void change_mnt_propagation(struct mount *, int);
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);
int mnt_get_count(struct mount *mnt);
void mnt_set_mountpoint(struct mount *, struct mountpoint *,
			struct mount *);
void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp,
			   struct mount *mnt);
struct mount *copy_tree(struct mount *, struct dentry *, int);
bool is_path_reachable(struct mount *, struct dentry *,
			 const struct path *root);
int count_mounts(struct mnt_namespace *ns, struct mount *mnt);
bool propagation_would_overmount(const struct mount *from,
				 const struct mount *to,
				 const struct mountpoint *mp);
#endif /* _LINUX_PNODE_H */