-#if 0
- /*
- * XXX: this isn't even close to the right thing to do,
- * introduces a variety of race conditions.
- *
- * If dirty, vm_pageout() has attempted to clean the page
- * again. In this case we do not do anything as we will
- * see the page again shortly. Otherwise, if no error mark
- * as clean and inform the pmap system. If error, mark as
- * dirty so we will try again (XXX: could get stuck doing
- * this, should give up after awhile).
- */
- if ((spc->spc_flags & SPC_DIRTY) == 0) {
- if (spc->spc_flags & SPC_ERROR) {
- printf("swap_pager: clean of %x (block %x) failed\n",
- VM_PAGE_TO_PHYS(spc->spc_m), blk);
- spc->spc_m->laundry = TRUE;
- } else {
- spc->spc_m->clean = TRUE;
- pmap_clear_modify(VM_PAGE_TO_PHYS(spc->spc_m));
- }
- }
- /*
- * XXX: allow blocked write faults to continue
- */
- spc->spc_m->page_lock = spc->spc_m->unlock_request = VM_PROT_NONE;
- PAGE_WAKEUP(spc->spc_m);
-#endif
-