From 9eee260594ce17b91214e914f85fde916ee744e5 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Fri, 31 Mar 2006 03:49:16 +0000 Subject: [PATCH] - 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. --- sys/sys/mount.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 5c4bb87a34d1..f63361c14306 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -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 */ };