Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mount.h
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | #define mnt_startzero mnt_list | ||||
struct thread *mnt_susp_owner; /* (i) thread owning suspension */ | struct thread *mnt_susp_owner; /* (i) thread owning suspension */ | ||||
#define mnt_endzero mnt_gjprovider | #define mnt_endzero mnt_gjprovider | ||||
char *mnt_gjprovider; /* gjournal provider name */ | char *mnt_gjprovider; /* gjournal provider name */ | ||||
struct mtx mnt_listmtx; | struct mtx mnt_listmtx; | ||||
struct vnodelst mnt_activevnodelist; /* (l) list of active vnodes */ | struct vnodelst mnt_activevnodelist; /* (l) list of active vnodes */ | ||||
int mnt_activevnodelistsize;/* (l) # of active vnodes */ | int mnt_activevnodelistsize;/* (l) # of active vnodes */ | ||||
struct vnodelst mnt_tmpfreevnodelist; /* (l) list of free vnodes */ | struct vnodelst mnt_tmpfreevnodelist; /* (l) list of free vnodes */ | ||||
int mnt_tmpfreevnodelistsize;/* (l) # of free vnodes */ | int mnt_tmpfreevnodelistsize;/* (l) # of free vnodes */ | ||||
struct vnodelst mnt_lazyvnodelist; /* (l) list of lazy vnodes */ | |||||
int mnt_lazyvnodelistsize; /* (l) # of lazy vnodes */ | |||||
struct lock mnt_explock; /* vfs_export walkers lock */ | struct lock mnt_explock; /* vfs_export walkers lock */ | ||||
TAILQ_ENTRY(mount) mnt_upper_link; /* (m) we in the all uppers */ | TAILQ_ENTRY(mount) mnt_upper_link; /* (m) we in the all uppers */ | ||||
TAILQ_HEAD(, mount) mnt_uppers; /* (m) upper mounts over us*/ | TAILQ_HEAD(, mount) mnt_uppers; /* (m) upper mounts over us*/ | ||||
int __aligned(CACHE_LINE_SIZE) mnt_vfs_ops;/* (i) pending vfs ops */ | int __aligned(CACHE_LINE_SIZE) mnt_vfs_ops;/* (i) pending vfs ops */ | ||||
int *mnt_thread_in_ops_pcpu; | int *mnt_thread_in_ops_pcpu; | ||||
int *mnt_ref_pcpu; | int *mnt_ref_pcpu; | ||||
int *mnt_lockref_pcpu; | int *mnt_lockref_pcpu; | ||||
int *mnt_writeopcount_pcpu; | int *mnt_writeopcount_pcpu; | ||||
Show All 27 Lines | |||||
void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *); | void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *); | ||||
#define MNT_VNODE_FOREACH_ACTIVE(vp, mp, mvp) \ | #define MNT_VNODE_FOREACH_ACTIVE(vp, mp, mvp) \ | ||||
for (vp = __mnt_vnode_first_active(&(mvp), (mp)); \ | for (vp = __mnt_vnode_first_active(&(mvp), (mp)); \ | ||||
(vp) != NULL; vp = __mnt_vnode_next_active(&(mvp), (mp))) | (vp) != NULL; vp = __mnt_vnode_next_active(&(mvp), (mp))) | ||||
#define MNT_VNODE_FOREACH_ACTIVE_ABORT(mp, mvp) \ | #define MNT_VNODE_FOREACH_ACTIVE_ABORT(mp, mvp) \ | ||||
__mnt_vnode_markerfree_active(&(mvp), (mp)) | __mnt_vnode_markerfree_active(&(mvp), (mp)) | ||||
/* | |||||
* Definitions for MNT_VNODE_FOREACH_LAZY. | |||||
*/ | |||||
typedef int mnt_lazy_cb_t(struct vnode *, void *); | |||||
struct vnode *__mnt_vnode_next_lazy(struct vnode **mvp, struct mount *mp, | |||||
mnt_lazy_cb_t *cb, void *cbarg); | |||||
struct vnode *__mnt_vnode_first_lazy(struct vnode **mvp, struct mount *mp, | |||||
mnt_lazy_cb_t *cb, void *cbarg); | |||||
void __mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp); | |||||
#define MNT_VNODE_FOREACH_LAZY(vp, mp, mvp, cb, cbarg) \ | |||||
for (vp = __mnt_vnode_first_lazy(&(mvp), (mp), (cb), (cbarg)); \ | |||||
(vp) != NULL; \ | |||||
vp = __mnt_vnode_next_lazy(&(mvp), (mp), (cb), (cbarg))) | |||||
#define MNT_VNODE_FOREACH_LAZY_ABORT(mp, mvp) \ | |||||
__mnt_vnode_markerfree_lazy(&(mvp), (mp)) | |||||
#define MNT_ILOCK(mp) mtx_lock(&(mp)->mnt_mtx) | #define MNT_ILOCK(mp) mtx_lock(&(mp)->mnt_mtx) | ||||
#define MNT_ITRYLOCK(mp) mtx_trylock(&(mp)->mnt_mtx) | #define MNT_ITRYLOCK(mp) mtx_trylock(&(mp)->mnt_mtx) | ||||
#define MNT_IUNLOCK(mp) mtx_unlock(&(mp)->mnt_mtx) | #define MNT_IUNLOCK(mp) mtx_unlock(&(mp)->mnt_mtx) | ||||
#define MNT_MTX(mp) (&(mp)->mnt_mtx) | #define MNT_MTX(mp) (&(mp)->mnt_mtx) | ||||
#define MNT_REF(mp) do { \ | #define MNT_REF(mp) do { \ | ||||
mtx_assert(MNT_MTX(mp), MA_OWNED); \ | mtx_assert(MNT_MTX(mp), MA_OWNED); \ | ||||
▲ Show 20 Lines • Show All 788 Lines • Show Last 20 Lines |