diff options
author | mckusick <mckusick@FreeBSD.org> | 2012-05-18 18:35:09 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2012-05-18 18:35:09 +0000 |
commit | 8a8c044e283955d1ea7337162a3cfd195f2abbb1 (patch) | |
tree | 4205c76df3da304ffee03bd36a9694b548277a80 /sys/sys/mount.h | |
parent | 8cfd0497b1d53953aa60fb698b32d4e11cb6d965 (diff) | |
download | FreeBSD-src-8a8c044e283955d1ea7337162a3cfd195f2abbb1.zip FreeBSD-src-8a8c044e283955d1ea7337162a3cfd195f2abbb1.tar.gz |
Update comment to document that the vnode free-list mutex needs to be
held when updating mnt_activevnodelist and mnt_activevnodelistsize.
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r-- | sys/sys/mount.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 319e094..b1cd913 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -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 */ |