vm_pageout.c (be72f78813385b54aac58a533450228a5a28ba9a) | vm_pageout.c (6bdfe06ad9337a33a402bc933006265c30980780) |
---|---|
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 * --- 838 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 | 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 * --- 838 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 --- |