1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

Removal of unnecessary usage of PG_COPYONWRITE.

This commit is contained in:
John Dyson 1995-10-23 04:28:59 +00:00
parent 7934237885
commit ff02cd98f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11707
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);
}