Fixed double page count incrementing in seg alloc
[akaros.git] / 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);
        }
 }