~kris/9p

9hist

75282af77799d7a1e7064564dd97add41bf5d088 — David du Colombier 33 years ago 64c08d9
Plan 9 from Bell Labs 1993-08-16
2 files changed, 13 insertions(+), 0 deletions(-)

M port/page.c
M port/portdat.h
M port/page.c => port/page.c +10 -0
@@ 114,6 114,12 @@ retry:
		unlock(p);
		goto retry;
	}

if(p->log == 0) {
	p->log = smalloc(8192);
	p->lptr = 0;
}

	uncachepage(p);
	p->ref++;
	p->va = va;


@@ 228,6 234,10 @@ duppage(Page *p)				/* Always call with p locked */
		unlock(np);
		return;
	}
if(np->log == 0) {
	np->log = smalloc(8192);
	np->lptr = 0;
}
	
	uncachepage(np);
	np->va = p->va;

M port/portdat.h => port/portdat.h +3 -0
@@ 311,6 311,9 @@ struct Page
	Page	*next;			/* Lru free list */
	Page	*prev;
	Page	*hash;			/* Image hash chains */

	uchar	*log;
	int	lptr;
};

struct Swapalloc