Blame view

fs/pnode.h 1.44 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)
03e06e68f   Ram Pai   [PATCH] introduce...
19

b90fa9ae8   Ram Pai   [PATCH] shared mo...
20
  #define CL_EXPIRE    		0x01
a58b0eb8e   Ram Pai   [PATCH] introduce...
21
  #define CL_SLAVE     		0x02
b90fa9ae8   Ram Pai   [PATCH] shared mo...
22
23
  #define CL_COPY_ALL 		0x04
  #define CL_MAKE_SHARED 		0x08
796a6b521   Al Viro   Kill CL_PROPAGATI...
24
  #define CL_PRIVATE 		0x10
b90fa9ae8   Ram Pai   [PATCH] shared mo...
25

0f0afb1dc   Al Viro   vfs: spread struc...
26
  static inline void set_mnt_shared(struct mount *mnt)
b90fa9ae8   Ram Pai   [PATCH] shared mo...
27
  {
0f0afb1dc   Al Viro   vfs: spread struc...
28
29
  	mnt->mnt.mnt_flags &= ~MNT_SHARED_MASK;
  	mnt->mnt.mnt_flags |= MNT_SHARED;
b90fa9ae8   Ram Pai   [PATCH] shared mo...
30
  }
0f0afb1dc   Al Viro   vfs: spread struc...
31
  void change_mnt_propagation(struct mount *, int);
a8d56d8e4   Al Viro   vfs: spread struc...
32
  int propagate_mnt(struct mount *, struct dentry *, struct mount *,
b90fa9ae8   Ram Pai   [PATCH] shared mo...
33
  		struct list_head *);
a05964f39   Ram Pai   [PATCH] shared mo...
34
  int propagate_umount(struct list_head *);
1ab597386   Al Viro   vfs: spread struc...
35
  int propagate_mount_busy(struct mount *, int);
4b8b21f4f   Al Viro   vfs: spread struc...
36
  void mnt_release_group_id(struct mount *);
6fc7871fe   Al Viro   vfs: spread struc...
37
  int get_dominating_id(struct mount *mnt, const struct path *root);
83adc7532   Al Viro   vfs: spread struc...
38
  unsigned int mnt_get_count(struct mount *mnt);
14cf1fa8f   Al Viro   vfs: spread struc...
39
  void mnt_set_mountpoint(struct mount *, struct dentry *,
44d964d60   Al Viro   vfs: spread struc...
40
  			struct mount *);
f47ec3f28   Al Viro   trim fs/internal.h
41
  void release_mounts(struct list_head *);
761d5c38e   Al Viro   vfs: spread struc...
42
  void umount_tree(struct mount *, int, struct list_head *);
87129cc0e   Al Viro   vfs: spread struc...
43
  struct mount *copy_tree(struct mount *, struct dentry *, int);
643822b41   Al Viro   vfs: spread struc...
44
  bool is_path_reachable(struct mount *, struct dentry *,
afac7cba7   Al Viro   vfs: more mnt_par...
45
  			 const struct path *root);
07b20889e   Ram Pai   [PATCH] beginning...
46
  #endif /* _LINUX_PNODE_H */