vm_pageout.c (52647) | vm_pageout.c (54444) |
---|---|
1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 51 unchanged lines hidden (view full) --- 60 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 61 * School of Computer Science 62 * Carnegie Mellon University 63 * Pittsburgh PA 15213-3890 64 * 65 * any improvements or extensions that they make and grant Carnegie the 66 * rights to redistribute these changes. 67 * | 1/* 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 51 unchanged lines hidden (view full) --- 60 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 61 * School of Computer Science 62 * Carnegie Mellon University 63 * Pittsburgh PA 15213-3890 64 * 65 * any improvements or extensions that they make and grant Carnegie the 66 * rights to redistribute these changes. 67 * |
68 * $FreeBSD: head/sys/vm/vm_pageout.c 52647 1999-10-30 07:37:14Z alc $ | 68 * $FreeBSD: head/sys/vm/vm_pageout.c 54444 1999-12-11 16:13:02Z eivind $ |
69 */ 70 71/* 72 * The proverbial page-out daemon. 73 */ 74 75#include "opt_vm.h" 76#include <sys/param.h> --- 770 unchanged lines hidden (view full) --- 847 * This whole code section is bogus - we need to fix 848 * the vnode pager to handle vm_page_t's without us 849 * having to do any sophisticated VOP tests. 850 */ 851 852 if (object->type == OBJT_VNODE) { 853 vp = object->handle; 854 | 69 */ 70 71/* 72 * The proverbial page-out daemon. 73 */ 74 75#include "opt_vm.h" 76#include <sys/param.h> --- 770 unchanged lines hidden (view full) --- 847 * This whole code section is bogus - we need to fix 848 * the vnode pager to handle vm_page_t's without us 849 * having to do any sophisticated VOP tests. 850 */ 851 852 if (object->type == OBJT_VNODE) { 853 vp = object->handle; 854 |
855 if (VOP_ISLOCKED(vp) || | 855 if (VOP_ISLOCKED(vp, NULL) || |
856 vp->v_data == NULL || 857 vget(vp, LK_EXCLUSIVE|LK_NOOBJ, curproc)) { 858 if ((m->queue == PQ_INACTIVE) && 859 (m->hold_count == 0) && 860 (m->busy == 0) && 861 (m->flags & PG_BUSY) == 0) { 862 s = splvm(); 863 TAILQ_REMOVE(&vm_page_queues[PQ_INACTIVE].pl, m, pageq); --- 570 unchanged lines hidden --- | 856 vp->v_data == NULL || 857 vget(vp, LK_EXCLUSIVE|LK_NOOBJ, curproc)) { 858 if ((m->queue == PQ_INACTIVE) && 859 (m->hold_count == 0) && 860 (m->busy == 0) && 861 (m->flags & PG_BUSY) == 0) { 862 s = splvm(); 863 TAILQ_REMOVE(&vm_page_queues[PQ_INACTIVE].pl, m, pageq); --- 570 unchanged lines hidden --- |