Fixed double page count incrementing in seg alloc
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 8 Apr 2009 20:25:27 +0000 (13:25 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 8 Apr 2009 20:25:27 +0000 (13:25 -0700)
kern/env.c

index ea4b100..b1a48ee 100644 (file)
@@ -239,7 +239,6 @@ segment_alloc(struct Env *e, void *va, size_t len)
                        continue;
                if ((r = page_alloc(&page)) < 0)
                        panic("segment_alloc: %e", r);
-               page->pp_ref++;
                page_insert(e->env_pgdir, page, start, PTE_U | PTE_W);
        }
 }