ref: 0aa3af0934f56a6e701306c4407d8ed908ee4dba
parent: 5ab9f9c621a04ed4544cd32b2fff3d020ec542c2
author: cinap_lenrek <[email protected]>
date: Tue Jun 3 03:47:09 EDT 2014
kernel: remove wrong and needles mapsize check in newseg() (thanks Yoann Padioleau)
--- a/sys/src/9/port/segment.c
+++ b/sys/src/9/port/segment.c
@@ -66,8 +66,6 @@
mapsize = ROUND(size, PTEPERTAB)/PTEPERTAB;
if(mapsize > nelem(s->ssegmap)){
- if(mapsize > (SEGMAPSIZE*PTEPERTAB))
- mapsize = (SEGMAPSIZE*PTEPERTAB);
s->map = smalloc(mapsize*sizeof(Pte*));
s->mapsize = mapsize;
}