Date: Sun, 29 Jan 2006 05:48:28 GMT From: Alan Cox <alc@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90602 for review Message-ID: <200601290548.k0T5mSrI028254@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90602 Change 90602 by alc@alc_home on 2006/01/29 05:47:50 Prepare for recognizing cache pages using PG_CACHE. Affected files ... .. //depot/projects/superpages/src/sys/vm/vm_pageq.c#12 edit Differences ... ==== //depot/projects/superpages/src/sys/vm/vm_pageq.c#12 (text+ko) ==== @@ -164,7 +164,7 @@ int queue = VM_PAGE_GETQUEUE(m); struct vpgqueues *pq; - if ((queue - m->buddyq) == PQ_BUDDY) { + if ((m->flags & PG_CACHE) != 0) { buddy_unfree(m); KASSERT(m->queue == PQ_NONE, ("xxx")); vm_page_flag_clear(m, PG_CACHE); @@ -191,7 +191,7 @@ int queue = VM_PAGE_GETQUEUE(m); struct vpgqueues *pq; - if ((queue - m->buddyq) == PQ_BUDDY) { + if ((m->flags & PG_CACHE) != 0) { buddy_unfree(m); KASSERT(m->queue == PQ_NONE, ("xxx")); vm_page_flag_clear(m, PG_CACHE);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601290548.k0T5mSrI028254>