Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Clarify comment.
details: https://anonhg.NetBSD.org/src/rev/67db74d2f0bf
branches: trunk
changeset: 353876:67db74d2f0bf
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri May 26 14:39:20 2017 +0000
description:
Clarify comment.
diffstat:
sys/kern/vfs_vnode.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r d94fc5698649 -r 67db74d2f0bf sys/kern/vfs_vnode.c
--- a/sys/kern/vfs_vnode.c Fri May 26 14:34:19 2017 +0000
+++ b/sys/kern/vfs_vnode.c Fri May 26 14:39:20 2017 +0000
@@ -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 @@
/*
* 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)) {
Home |
Main Index |
Thread Index |
Old Index