Module Name: src
Committed By: riastradh
Date: Fri May 26 14:39:20 UTC 2017
Modified Files:
src/sys/kern: vfs_vnode.c
Log Message:
Clarify comment.
To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/kern/vfs_vnode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_vnode.c
diff -u src/sys/kern/vfs_vnode.c:1.89 src/sys/kern/vfs_vnode.c:1.90
--- src/sys/kern/vfs_vnode.c:1.89 Fri May 26 14:20:59 2017
+++ src/sys/kern/vfs_vnode.c Fri May 26 14:39:20 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_vnode.c,v 1.89 2017/05/26 14:20:59 riastradh Exp $ */
+/* $NetBSD: vfs_vnode.c,v 1.90 2017/05/26 14:39:20 riastradh Exp $ */
/*-
* Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -156,7 +156,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.89 2017/05/26 14:20:59 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.90 2017/05/26 14:39:20 riastradh Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -1570,7 +1570,9 @@ vcache_reclaim(vnode_t *vp)
/*
* Disassociate the underlying file system from the vnode.
- * Note that the VOP_INACTIVE will not unlock the vnode.
+ * VOP_INACTIVE leaves the vnode locked; VOP_RECLAIM unlocks
+ * the vnode, and may destroy the vnode so that VOP_UNLOCK
+ * would no longer function.
*/
VOP_INACTIVE(vp, &recycle);
if (VOP_RECLAIM(vp)) {