Removal of unnecessary usage of PG_COPYONWRITE.

This commit is contained in:
dyson 1995-10-23 04:28:59 +00:00
parent 1074db22b1
commit 0dbcd1947b
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@
*
* @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94
*
* $Id: procfs_mem.c,v 1.8 1995/06/28 04:51:06 davidg Exp $
* $Id: procfs_mem.c,v 1.9 1995/07/13 08:47:48 davidg Exp $
*/
/*
@ -154,7 +154,7 @@ procfs_rwmem(p, uio)
*/
if (!error && writing && object->backing_object) {
m = vm_page_lookup(object, off);
if (m == 0 || (m->flags & PG_COPYONWRITE))
if (m == 0)
error = vm_fault(map, pageno,
VM_PROT_WRITE, FALSE);
}

View File

@ -37,7 +37,7 @@
*
* @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94
*
* $Id: procfs_mem.c,v 1.8 1995/06/28 04:51:06 davidg Exp $
* $Id: procfs_mem.c,v 1.9 1995/07/13 08:47:48 davidg Exp $
*/
/*
@ -154,7 +154,7 @@ procfs_rwmem(p, uio)
*/
if (!error && writing && object->backing_object) {
m = vm_page_lookup(object, off);
if (m == 0 || (m->flags & PG_COPYONWRITE))
if (m == 0)
error = vm_fault(map, pageno,
VM_PROT_WRITE, FALSE);
}