Module Name: src Committed By: yamt Date: Sun Feb 5 08:23:41 UTC 2012
Modified Files: src/sys/miscfs/genfs [yamt-pagecache]: genfs_io.c Log Message: genfs_gop_write_rwmap: comment To generate a diff of this commit: cvs rdiff -u -r1.53.2.11 -r1.53.2.12 src/sys/miscfs/genfs/genfs_io.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/miscfs/genfs/genfs_io.c diff -u src/sys/miscfs/genfs/genfs_io.c:1.53.2.11 src/sys/miscfs/genfs/genfs_io.c:1.53.2.12 --- src/sys/miscfs/genfs/genfs_io.c:1.53.2.11 Sun Feb 5 05:01:26 2012 +++ src/sys/miscfs/genfs/genfs_io.c Sun Feb 5 08:23:41 2012 @@ -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 @@ genfs_gop_write(struct vnode *vp, struct 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;