aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/mount.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mount.h b/include/linux/mount.h
index 2eecd2c8c760..8c8e94369ac8 100644
--- a/include/linux/mount.h
+++ b/include/linux/mount.h
@@ -14,6 +14,7 @@
14 14
15#include <linux/types.h> 15#include <linux/types.h>
16#include <linux/list.h> 16#include <linux/list.h>
17#include <linux/nodemask.h>
17#include <linux/spinlock.h> 18#include <linux/spinlock.h>
18#include <asm/atomic.h> 19#include <asm/atomic.h>
19 20
@@ -30,6 +31,7 @@ struct mnt_namespace;
30#define MNT_RELATIME 0x20 31#define MNT_RELATIME 0x20
31 32
32#define MNT_SHRINKABLE 0x100 33#define MNT_SHRINKABLE 0x100
34#define MNT_IMBALANCED_WRITE_COUNT 0x200 /* just for debugging */
33 35
34#define MNT_SHARED 0x1000 /* if the vfsmount is a shared mount */ 36#define MNT_SHARED 0x1000 /* if the vfsmount is a shared mount */
35#define MNT_UNBINDABLE 0x2000 /* if the vfsmount is a unbindable mount */ 37#define MNT_UNBINDABLE 0x2000 /* if the vfsmount is a unbindable mount */
@@ -62,6 +64,11 @@ struct vfsmount {
62 int mnt_expiry_mark; /* true if marked for expiry */ 64 int mnt_expiry_mark; /* true if marked for expiry */
63 int mnt_pinned; 65 int mnt_pinned;
64 int mnt_ghosts; 66 int mnt_ghosts;
67 /*
68 * This value is not stable unless all of the mnt_writers[] spinlocks
69 * are held, and all mnt_writer[]s on this mount have 0 as their ->count
70 */
71 atomic_t __mnt_writers;
65}; 72};
66 73
67static inline struct vfsmount *mntget(struct vfsmount *mnt) 74static inline struct vfsmount *mntget(struct vfsmount *mnt)