Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mount.h
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Lines | #define mnt_startzero mnt_list | ||||
u_int mnt_hashseed; /* Random seed for vfs_hash */ | u_int mnt_hashseed; /* Random seed for vfs_hash */ | ||||
int mnt_lockref; /* (i) Lock reference count */ | int mnt_lockref; /* (i) Lock reference count */ | ||||
int mnt_secondary_writes; /* (i) # of secondary writes */ | int mnt_secondary_writes; /* (i) # of secondary writes */ | ||||
int mnt_secondary_accwrites;/* (i) secondary wr. starts */ | int mnt_secondary_accwrites;/* (i) secondary wr. starts */ | ||||
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 */ | |||||
int mnt_activevnodelistsize;/* (l) # of active vnodes */ | |||||
struct vnodelst mnt_tmpfreevnodelist; /* (l) list of free vnodes */ | |||||
int mnt_tmpfreevnodelistsize;/* (l) # of free vnodes */ | |||||
struct vnodelst mnt_dirtyvnodelist; /* (l) list of dirty vnodes */ | struct vnodelst mnt_dirtyvnodelist; /* (l) list of dirty vnodes */ | ||||
int mnt_dirtyvnodelistsize; /* (l) # of dirty vnodes */ | int mnt_dirtyvnodelistsize; /* (l) # of dirty 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; | ||||
Show All 15 Lines | |||||
#define MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp) \ | #define MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp) \ | ||||
do { \ | do { \ | ||||
MNT_ILOCK(mp); \ | MNT_ILOCK(mp); \ | ||||
__mnt_vnode_markerfree_all(&(mvp), (mp)); \ | __mnt_vnode_markerfree_all(&(mvp), (mp)); \ | ||||
/* MNT_IUNLOCK(mp); -- done in above function */ \ | /* MNT_IUNLOCK(mp); -- done in above function */ \ | ||||
mtx_assert(MNT_MTX(mp), MA_NOTOWNED); \ | mtx_assert(MNT_MTX(mp), MA_NOTOWNED); \ | ||||
} while (0) | } while (0) | ||||
/* | |||||
* Definitions for MNT_VNODE_FOREACH_ACTIVE. | |||||
*/ | |||||
struct vnode *__mnt_vnode_next_active(struct vnode **mvp, struct mount *mp); | |||||
struct vnode *__mnt_vnode_first_active(struct vnode **mvp, struct mount *mp); | |||||
void __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *); | |||||
#define MNT_VNODE_FOREACH_ACTIVE(vp, mp, mvp) \ | |||||
for (vp = __mnt_vnode_first_active(&(mvp), (mp)); \ | |||||
(vp) != NULL; vp = __mnt_vnode_next_active(&(mvp), (mp))) | |||||
#define MNT_VNODE_FOREACH_ACTIVE_ABORT(mp, mvp) \ | |||||
__mnt_vnode_markerfree_active(&(mvp), (mp)) | |||||
/* | /* | ||||
* Definitions for MNT_VNODE_FOREACH_DIRTY. | * Definitions for MNT_VNODE_FOREACH_DIRTY. | ||||
*/ | */ | ||||
struct vnode *__mnt_vnode_next_dirty(struct vnode **mvp, struct mount *mp, | struct vnode *__mnt_vnode_next_dirty(struct vnode **mvp, struct mount *mp, | ||||
bool (*cb)(struct vnode *, void *), void *cbarg); | bool (*cb)(struct vnode *, void *), void *cbarg); | ||||
struct vnode *__mnt_vnode_first_dirty(struct vnode **mvp, struct mount *mp, | struct vnode *__mnt_vnode_first_dirty(struct vnode **mvp, struct mount *mp, | ||||
bool (*cb)(struct vnode *, void *), void *cbarg); | bool (*cb)(struct vnode *, void *), void *cbarg); | ||||
▲ Show 20 Lines • Show All 805 Lines • Show Last 20 Lines |