Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs Code which uses pages fetched by th...
details: https://anonhg.NetBSD.org/src/rev/27ab5c321148
branches: trunk
changeset: 748918:27ab5c321148
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Nov 10 16:55:12 2009 +0000
description:
Code which uses pages fetched by the pager needs PGO_SYNCIO for
obvious reasons.
diffstat:
sys/rump/librump/rumpvfs/vm_vfs.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 3a7382587c66 -r 27ab5c321148 sys/rump/librump/rumpvfs/vm_vfs.c
--- a/sys/rump/librump/rumpvfs/vm_vfs.c Tue Nov 10 16:49:53 2009 +0000
+++ b/sys/rump/librump/rumpvfs/vm_vfs.c Tue Nov 10 16:55:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_vfs.c,v 1.13 2009/10/18 00:41:09 pooka Exp $ */
+/* $NetBSD: vm_vfs.c,v 1.14 2009/11/10 16:55:12 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_vfs.c,v 1.13 2009/10/18 00:41:09 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_vfs.c,v 1.14 2009/11/10 16:55:12 pooka Exp $");
#include <sys/param.h>
@@ -96,7 +96,8 @@
npages = MIN(maxpages, round_page(len) >> PAGE_SHIFT);
memset(pgs, 0, npages * sizeof(struct vm_page *));
mutex_enter(&uobj->vmobjlock);
- rv = uobj->pgops->pgo_get(uobj, off, pgs, &npages, 0, 0, 0, 0);
+ rv = uobj->pgops->pgo_get(uobj, off, pgs, &npages, 0,
+ VM_PROT_READ | VM_PROT_WRITE, 0, PGO_SYNCIO);
KASSERT(npages > 0);
for (i = 0; i < npages; i++) {
Home |
Main Index |
Thread Index |
Old Index