Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/uebayasi-xip]: src/sys/miscfs/genfs Clean up, reduce diff from trunk.
details: https://anonhg.NetBSD.org/src/rev/93d0f33b69ee
branches: uebayasi-xip
changeset: 751891:93d0f33b69ee
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sun Nov 21 06:46:15 2010 +0000
description:
Clean up, reduce diff from trunk.
diffstat:
sys/miscfs/genfs/genfs_io.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diffs (65 lines):
diff -r 764c2f9c0af6 -r 93d0f33b69ee sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c Sun Nov 21 05:19:56 2010 +0000
+++ b/sys/miscfs/genfs/genfs_io.c Sun Nov 21 06:46:15 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_io.c,v 1.36.2.57 2010/11/21 05:19:56 uebayasi Exp $ */
+/* $NetBSD: genfs_io.c,v 1.36.2.58 2010/11/21 06:46:15 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.36.2.57 2010/11/21 05:19:56 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.36.2.58 2010/11/21 06:46:15 uebayasi Exp $");
#include "opt_xip.h"
@@ -50,7 +50,6 @@
#include <sys/kauth.h>
#include <sys/fstrans.h>
#include <sys/buf.h>
-#include <sys/once.h>
#include <miscfs/genfs/genfs.h>
#include <miscfs/genfs/genfs_node.h>
@@ -711,9 +710,8 @@
bp, offset, bp->b_bcount, bp->b_blkno);
VOP_STRATEGY(devvp, bp);
- }
+ } else {
#ifdef XIP
- else {
/*
* XIP page metadata assignment
* - Unallocated block is redirected to the dedicated zero'ed
@@ -744,8 +742,8 @@
ridx + pidx + i, (long)pg->phys_addr, pg, 0);
pgs[ridx + pidx + i] = pg;
}
+#endif
}
-#endif
}
loopdone:
@@ -899,7 +897,6 @@
}
}
mutex_exit(&uvm_pageqlock);
-
if (memwrite) {
genfs_markdirty(vp);
}
@@ -923,9 +920,7 @@
pg->uobject = &vp->v_uobj;
}
} /* xip */
-
mutex_exit(&uobj->vmobjlock);
-
if (ap->a_m != NULL) {
memcpy(ap->a_m, &pgs[ridx],
orignmempages * sizeof(struct vm_page *));
Home |
Main Index |
Thread Index |
Old Index