Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm use voff_t instead of vaddr_t to hold file offset pa...
details: https://anonhg.NetBSD.org/src/rev/eb8742fa1555
branches: trunk
changeset: 580057:eb8742fa1555
user: dbj <dbj%NetBSD.org@localhost>
date: Thu Apr 07 06:44:15 2005 +0000
description:
use voff_t instead of vaddr_t to hold file offset passed to pgo_put
diffstat:
sys/uvm/uvm_map.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 4bd033222982 -r eb8742fa1555 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Wed Apr 06 21:39:17 2005 +0000
+++ b/sys/uvm/uvm_map.c Thu Apr 07 06:44:15 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.187 2005/04/01 11:59:38 yamt Exp $ */
+/* $NetBSD: uvm_map.c,v 1.188 2005/04/07 06:44:15 dbj Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.187 2005/04/01 11:59:38 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.188 2005/04/07 06:44:15 dbj Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -3421,6 +3421,7 @@
struct vm_page *pg;
vaddr_t offset;
vsize_t size;
+ voff_t uoff;
int error, refs;
UVMHIST_FUNC("uvm_map_clean"); UVMHIST_CALLED(maphist);
@@ -3553,13 +3554,13 @@
* data from files.
*/
- offset = current->offset + (start - current->start);
+ uoff = current->offset + (start - current->start);
size = MIN(end, current->end) - start;
if (uobj != NULL) {
simple_lock(&uobj->vmobjlock);
if (uobj->pgops->pgo_put != NULL)
- error = (uobj->pgops->pgo_put)(uobj, offset,
- offset + size, flags | PGO_CLEANIT);
+ error = (uobj->pgops->pgo_put)(uobj, uoff,
+ uoff + size, flags | PGO_CLEANIT);
else
error = 0;
}
Home |
Main Index |
Thread Index |
Old Index