Source-Changes-HG archive

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

[src/yamt-pagecache]: src/sys/miscfs/genfs genfs_gop_write_rwmap: comment



details:   https://anonhg.NetBSD.org/src/rev/dc9fb3c8d1fe
branches:  yamt-pagecache
changeset: 770872:dc9fb3c8d1fe
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Feb 05 08:23:41 2012 +0000

description:
genfs_gop_write_rwmap: comment

diffstat:

 sys/miscfs/genfs/genfs_io.c |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 951c68198a93 -r dc9fb3c8d1fe sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c       Sun Feb 05 05:01:26 2012 +0000
+++ b/sys/miscfs/genfs/genfs_io.c       Sun Feb 05 08:23:41 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_io.c,v 1.53.2.11 2012/02/05 05:01:26 yamt Exp $  */
+/*     $NetBSD: genfs_io.c,v 1.53.2.12 2012/02/05 08:23:41 yamt Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.53.2.11 2012/02/05 05:01:26 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.53.2.12 2012/02/05 08:23:41 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1333,8 +1333,17 @@
        return error;
 }
 
+/*
+ * genfs_gop_write_rwmap:
+ *
+ * a variant of genfs_gop_write.  it's used by UDF for its directory buffers.
+ * this maps pages with PROT_WRITE so that VOP_STRATEGY can modifies
+ * the contents before writing it out to the underlying storage.
+ */
+
 int
-genfs_gop_write_rwmap(struct vnode *vp, struct vm_page **pgs, int npages, int flags)
+genfs_gop_write_rwmap(struct vnode *vp, struct vm_page **pgs, int npages,
+    int flags)
 {
        off_t off;
        vaddr_t kva;



Home | Main Index | Thread Index | Old Index