return ENOMEM;
blk = map * SWAP_SIZE;
/* Write the app (and possibly the uarea etc..) to disk */
- swapwrite(SWAPDEV, blk, SWAPTOP - SWAPBASE, SWAPBASE, p->page);
+ swapwrite(SWAPDEV, blk, SWAPTOP - SWAPBASE, SWAPBASE, p->p_page);
pagemap_free(p);
p->p_page = 0;
p->p_page2 = map;
kprintf("%x: nopage!\n", p);
return;
}
- swapread(SWAPDEV, blk, SWAPTOP - SWAPBASE, SWAPBASE, p->page);
+ swapread(SWAPDEV, blk, SWAPTOP - SWAPBASE, SWAPBASE, p->p_page);
#ifdef DEBUG
kprintf("%x: swapin done %d\n", p, p->p_page);
#endif