Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *  linux/fs/pnode.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * (C) Copyright IBM Corporation 2005.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifndef _LINUX_PNODE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define _LINUX_PNODE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/list.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include "mount.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define IS_MNT_SLAVE(m) ((m)->mnt_master)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define IS_MNT_NEW(m)  (!(m)->mnt_ns || is_anon_ns((m)->mnt_ns))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define IS_MNT_MARKED(m) ((m)->mnt.mnt_flags & MNT_MARKED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define SET_MNT_MARK(m) ((m)->mnt.mnt_flags |= MNT_MARKED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define CLEAR_MNT_MARK(m) ((m)->mnt.mnt_flags &= ~MNT_MARKED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define CL_EXPIRE    		0x01
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define CL_SLAVE     		0x02
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define CL_COPY_UNBINDABLE	0x04
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define CL_MAKE_SHARED 		0x08
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define CL_PRIVATE 		0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define CL_SHARED_TO_SLAVE	0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define CL_COPY_MNT_NS_FILE	0x40
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define CL_COPY_ALL		(CL_COPY_UNBINDABLE | CL_COPY_MNT_NS_FILE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) static inline void set_mnt_shared(struct mount *mnt)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	mnt->mnt.mnt_flags |= MNT_SHARED;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) void change_mnt_propagation(struct mount *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) int propagate_mnt(struct mount *, struct mountpoint *, struct mount *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 		struct hlist_head *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) int propagate_umount(struct list_head *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) int propagate_mount_busy(struct mount *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) void propagate_mount_unlock(struct mount *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) void mnt_release_group_id(struct mount *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) int get_dominating_id(struct mount *mnt, const struct path *root);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) int mnt_get_count(struct mount *mnt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) void mnt_set_mountpoint(struct mount *, struct mountpoint *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 			struct mount *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) void mnt_change_mountpoint(struct mount *parent, struct mountpoint *mp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 			   struct mount *mnt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) struct mount *copy_tree(struct mount *, struct dentry *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) bool is_path_reachable(struct mount *, struct dentry *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 			 const struct path *root);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) int count_mounts(struct mnt_namespace *ns, struct mount *mnt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #endif /* _LINUX_PNODE_H */