Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/miscfs/genfs Clarify meaning of "glocked" argument of ge...



details:   https://anonhg.NetBSD.org/src/rev/f99a4f74c92e
branches:  trunk
changeset: 822706:f99a4f74c92e
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Apr 01 23:34:17 2017 +0000

description:
Clarify meaning of "glocked" argument of genfs_putpages_read.

diffstat:

 sys/miscfs/genfs/genfs_io.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 1503e90daacb -r f99a4f74c92e sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c       Sat Apr 01 23:28:02 2017 +0000
+++ b/sys/miscfs/genfs/genfs_io.c       Sat Apr 01 23:34:17 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_io.c,v 1.67 2017/04/01 19:57:54 riastradh Exp $  */
+/*     $NetBSD: genfs_io.c,v 1.68 2017/04/01 23:34:17 dholland Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.67 2017/04/01 19:57:54 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.68 2017/04/01 23:34:17 dholland Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -508,6 +508,10 @@
 
 /*
  * genfs_getpages_read: Read the pages in with VOP_BMAP/VOP_STRATEGY.
+ *
+ * "glocked" (which is currently not actually used) tells us not whether
+ * the genfs_node is locked on entry (it always is) but whether it was
+ * locked on entry to genfs_getpages.
  */
 static int
 genfs_getpages_read(struct vnode *vp, struct vm_page **pgs, int npages,



Home | Main Index | Thread Index | Old Index