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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to