Blame view

fs/pnode.h 1.09 KB
07b20889e   Ram Pai   [PATCH] beginning...
1
2
3
4
5
6
7
8
9
10
11
12
  /*
   *  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>
  #include <linux/mount.h>
03e06e68f   Ram Pai   [PATCH] introduce...
13
14
  
  #define IS_MNT_SHARED(mnt) (mnt->mnt_flags & MNT_SHARED)
a58b0eb8e   Ram Pai   [PATCH] introduce...
15
  #define IS_MNT_SLAVE(mnt) (mnt->mnt_master)
6b3286ed1   Kirill Korotaev   [PATCH] rename st...
16
  #define IS_MNT_NEW(mnt)  (!mnt->mnt_ns)
03e06e68f   Ram Pai   [PATCH] introduce...
17
  #define CLEAR_MNT_SHARED(mnt) (mnt->mnt_flags &= ~MNT_SHARED)
9676f0c63   Ram Pai   [PATCH] unbindabl...
18
  #define IS_MNT_UNBINDABLE(mnt) (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
26
27
  
  static inline void set_mnt_shared(struct vfsmount *mnt)
  {
495d6c9c6   Valerie Aurora   VFS: Clean up sha...
28
  	mnt->mnt_flags &= ~MNT_SHARED_MASK;
b90fa9ae8   Ram Pai   [PATCH] shared mo...
29
30
  	mnt->mnt_flags |= MNT_SHARED;
  }
07b20889e   Ram Pai   [PATCH] beginning...
31
  void change_mnt_propagation(struct vfsmount *, int);
b90fa9ae8   Ram Pai   [PATCH] shared mo...
32
33
  int propagate_mnt(struct vfsmount *, struct dentry *, struct vfsmount *,
  		struct list_head *);
a05964f39   Ram Pai   [PATCH] shared mo...
34
35
  int propagate_umount(struct list_head *);
  int propagate_mount_busy(struct vfsmount *, int);
521b5d0c4   Al Viro   [PATCH] teach seq...
36
  void mnt_release_group_id(struct vfsmount *);
97e7e0f71   Miklos Szeredi   [patch 7/7] vfs: ...
37
  int get_dominating_id(struct vfsmount *mnt, const struct path *root);
07b20889e   Ram Pai   [PATCH] beginning...
38
  #endif /* _LINUX_PNODE_H */