svn commit: r235619 - head/sys/sys
Kirk McKusick
mckusick at FreeBSD.org
Fri May 18 18:35:10 UTC 2012
Author: mckusick
Date: Fri May 18 18:35:09 2012
New Revision: 235619
URL: http://svn.freebsd.org/changeset/base/235619
Log:
Update comment to document that the vnode free-list mutex needs to be
held when updating mnt_activevnodelist and mnt_activevnodelistsize.
Modified:
head/sys/sys/mount.h
Modified: head/sys/sys/mount.h
==============================================================================
--- head/sys/sys/mount.h Fri May 18 18:34:29 2012 (r235618)
+++ head/sys/sys/mount.h Fri May 18 18:35:09 2012 (r235619)
@@ -148,6 +148,7 @@ struct vfsopt {
* Lock reference:
* m - mountlist_mtx
* i - interlock
+ * v - vnode freelist mutex
*
* Unmarked fields are considered stable as long as a ref is held.
*
@@ -164,8 +165,8 @@ struct mount {
int mnt_ref; /* (i) Reference count */
struct vnodelst mnt_nvnodelist; /* (i) list of vnodes */
int mnt_nvnodelistsize; /* (i) # of vnodes */
- struct vnodelst mnt_activevnodelist; /* (i) list of active vnodes */
- int mnt_activevnodelistsize;/* (i) # of active vnodes */
+ struct vnodelst mnt_activevnodelist; /* (v) list of active vnodes */
+ int mnt_activevnodelistsize;/* (v) # of active vnodes */
int mnt_writeopcount; /* (i) write syscalls pending */
int mnt_kern_flag; /* (i) kernel only flags */
uint64_t mnt_flag; /* (i) flags shared with user */
More information about the svn-src-head
mailing list