Blame view

fs/pnode.h 1.85 KB
07b20889e   Ram Pai   [PATCH] beginning...
1
2
3
4
5
6
7
8
9
10
11
  /*
   *  linux/fs/pnode.h
   *
   * (C) Copyright IBM Corporation 2005.
   *	Released under GPL v2.
   *
   */
  #ifndef _LINUX_PNODE_H
  #define _LINUX_PNODE_H
  
  #include <linux/list.h>
b2dba1af3   Al Viro   vfs: new internal...
12
  #include "mount.h"
03e06e68f   Ram Pai   [PATCH] introduce...
13

fc7be130c   Al Viro   vfs: switch pnode...
14
15
16
17
18
  #define IS_MNT_SHARED(m) ((m)->mnt.mnt_flags & MNT_SHARED)
  #define IS_MNT_SLAVE(m) ((m)->mnt_master)
  #define IS_MNT_NEW(m)  (!(m)->mnt_ns)
  #define CLEAR_MNT_SHARED(m) ((m)->mnt.mnt_flags &= ~MNT_SHARED)
  #define IS_MNT_UNBINDABLE(m) ((m)->mnt.mnt_flags & MNT_UNBINDABLE)
f2ebb3a92   Al Viro   smarter propagate...
19
20
21
  #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)
0c56fe314   Eric W. Biederman   mnt: Don't propag...
22
  #define IS_MNT_LOCKED(m) ((m)->mnt.mnt_flags & MNT_LOCKED)
03e06e68f   Ram Pai   [PATCH] introduce...
23

b90fa9ae8   Ram Pai   [PATCH] shared mo...
24
  #define CL_EXPIRE    		0x01
a58b0eb8e   Ram Pai   [PATCH] introduce...
25
  #define CL_SLAVE     		0x02
4ce5d2b1a   Eric W. Biederman   vfs: Don't copy m...
26
  #define CL_COPY_UNBINDABLE	0x04
b90fa9ae8   Ram Pai   [PATCH] shared mo...
27
  #define CL_MAKE_SHARED 		0x08
796a6b521   Al Viro   Kill CL_PROPAGATI...
28
  #define CL_PRIVATE 		0x10
7a472ef4b   Eric W. Biederman   vfs: Only support...
29
  #define CL_SHARED_TO_SLAVE	0x20
132c94e31   Eric W. Biederman   vfs: Carefully pr...
30
  #define CL_UNPRIVILEGED		0x40
4ce5d2b1a   Eric W. Biederman   vfs: Don't copy m...
31
32
33
  #define CL_COPY_MNT_NS_FILE	0x80
  
  #define CL_COPY_ALL		(CL_COPY_UNBINDABLE | CL_COPY_MNT_NS_FILE)
b90fa9ae8   Ram Pai   [PATCH] shared mo...
34

0f0afb1dc   Al Viro   vfs: spread struc...
35
  static inline void set_mnt_shared(struct mount *mnt)
b90fa9ae8   Ram Pai   [PATCH] shared mo...
36
  {
0f0afb1dc   Al Viro   vfs: spread struc...
37
38
  	mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK;
  	mnt->mnt.mnt_flags |= MNT_SHARED;
b90fa9ae8   Ram Pai   [PATCH] shared mo...
39
  }
0f0afb1dc   Al Viro   vfs: spread struc...
40
  void change_mnt_propagation(struct mount *, int);
84d17192d   Al Viro   get rid of full-h...
41
  int propagate_mnt(struct mount *, struct mountpoint *, struct mount *,
38129a13e   Al Viro   switch mnt_hash t...
42
  		struct hlist_head *);
c003b26ff   Eric W. Biederman   mnt: In umount_tr...
43
  int propagate_umount(struct list_head *);
1ab597386   Al Viro   vfs: spread struc...
44
  int propagate_mount_busy(struct mount *, int);
5d88457eb   Eric W. Biederman   mnt: On an unmoun...
45
  void propagate_mount_unlock(struct mount *);
4b8b21f4f   Al Viro   vfs: spread struc...
46
  void mnt_release_group_id(struct mount *);
6fc7871fe   Al Viro   vfs: spread struc...
47
  int get_dominating_id(struct mount *mnt, const struct path *root);
83adc7532   Al Viro   vfs: spread struc...
48
  unsigned int mnt_get_count(struct mount *mnt);
84d17192d   Al Viro   get rid of full-h...
49
  void mnt_set_mountpoint(struct mount *, struct mountpoint *,
44d964d60   Al Viro   vfs: spread struc...
50
  			struct mount *);
87129cc0e   Al Viro   vfs: spread struc...
51
  struct mount *copy_tree(struct mount *, struct dentry *, int);
643822b41   Al Viro   vfs: spread struc...
52
  bool is_path_reachable(struct mount *, struct dentry *,
afac7cba7   Al Viro   vfs: more mnt_par...
53
  			 const struct path *root);
d29216842   Eric W. Biederman   mnt: Add a per mo...
54
  int count_mounts(struct mnt_namespace *ns, struct mount *mnt);
07b20889e   Ram Pai   [PATCH] beginning...
55
  #endif /* _LINUX_PNODE_H */