changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/port/page.c

revision 4350: 1f9d7811d546
parent 4327: 21ed374aaa66
child 4590: f59bee1b3aee
     1.1--- a/sys/src/9/port/page.c
     1.2+++ b/sys/src/9/port/page.c
     1.3@@ -234,26 +234,6 @@ putpage(Page *p)
     1.4 		freepages(p, p, 1);
     1.5 }
     1.6 
     1.7-Page*
     1.8-auxpage(void)
     1.9-{
    1.10-	Page *p;
    1.11-
    1.12-	lock(&palloc);
    1.13-	p = palloc.head;
    1.14-	if(p == nil || palloc.freecount < swapalloc.highwater) {
    1.15-		unlock(&palloc);
    1.16-		return nil;
    1.17-	}
    1.18-	palloc.head = p->next;
    1.19-	p->next = nil;
    1.20-	palloc.freecount--;
    1.21-	unlock(&palloc);
    1.22-	p->ref = 1;
    1.23-
    1.24-	return p;
    1.25-}
    1.26-
    1.27 void
    1.28 copypage(Page *f, Page *t)
    1.29 {