Blame view

fs/pnode.h 1006 Bytes
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
24
25
26
27
28
29
30
  #define CL_COPY_ALL 		0x04
  #define CL_MAKE_SHARED 		0x08
  #define CL_PROPAGATION 		0x10
  
  static inline void set_mnt_shared(struct vfsmount *mnt)
  {
  	mnt->mnt_flags &= ~MNT_PNODE_MASK;
  	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);
07b20889e   Ram Pai   [PATCH] beginning...
36
  #endif /* _LINUX_PNODE_H */