- Define mnt_startzero and mnt_endzero as a range that excludes mnt_mtx
and mnt_lock so that the mountpoint can be explicitly zeroed on creation. Discussed with: tegge Tested by: kris Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
fdf86b2dcd
commit
9eee260594
@ -143,13 +143,14 @@ struct vfsopt;
|
||||
*
|
||||
*/
|
||||
struct mount {
|
||||
struct lock mnt_lock; /* mount structure lock */
|
||||
struct mtx mnt_mtx; /* mount structure interlock */
|
||||
#define mnt_startzero mnt_list
|
||||
TAILQ_ENTRY(mount) mnt_list; /* (m) mount list */
|
||||
struct vfsops *mnt_op; /* operations on fs */
|
||||
struct vfsconf *mnt_vfc; /* configuration info */
|
||||
struct vnode *mnt_vnodecovered; /* vnode we mounted on */
|
||||
struct vnode *mnt_syncer; /* syncer vnode */
|
||||
struct lock mnt_lock; /* mount structure lock */
|
||||
struct mtx mnt_mtx; /* mount structure interlock */
|
||||
int mnt_ref; /* (i) Reference count */
|
||||
struct vnodelst mnt_nvnodelist; /* (i) list of vnodes */
|
||||
int mnt_nvnodelistsize; /* (i) # of vnodes */
|
||||
@ -172,6 +173,7 @@ struct mount {
|
||||
int mnt_holdcnt; /* hold count */
|
||||
int mnt_holdcntwaiters; /* waits on hold count */
|
||||
int mnt_secondary_writes; /* (i) # of secondary writes */
|
||||
#define mnt_endzero mnt_secondary_accwrites
|
||||
int mnt_secondary_accwrites;/* (i) secondary wr. starts */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user