diff options
author | alc <alc@FreeBSD.org> | 2002-07-25 19:09:07 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-07-25 19:09:07 +0000 |
commit | 08c7935a56563a6911c89ac23532575b25896c38 (patch) | |
tree | 185bd5293a7faac223b301c34687748dd9403012 | |
parent | 3428bc649e49662b8d682412bc1b948204561db8 (diff) | |
download | FreeBSD-src-08c7935a56563a6911c89ac23532575b25896c38.zip FreeBSD-src-08c7935a56563a6911c89ac23532575b25896c38.tar.gz |
o Remove a vm_page_deactivate() that is immediately followed by a
vm_page_rename() from vm_object_backing_scan(). vm_page_rename()
also performs vm_page_deactivate() on pages in the cache queues,
making the removed vm_page_deactivate() redundant.
-rw-r--r-- | sys/vm/vm_object.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 915029e..20c6d75 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -1465,9 +1465,6 @@ vm_object_backing_scan(vm_object_t object, int op) * If the page was mapped to a process, it can remain * mapped through the rename. */ - if ((p->queue - p->pc) == PQ_CACHE) - vm_page_deactivate(p); - vm_page_rename(p, object, new_pindex); /* page automatically made dirty by rename */ } |