newsz 233 kernel/vm.c uvmalloc(pagetable_t pagetable, uint64 oldsz, uint64 newsz, int xperm) newsz 238 kernel/vm.c if(newsz < oldsz) newsz 242 kernel/vm.c for(a = oldsz; a < newsz; a += PGSIZE){ newsz 255 kernel/vm.c return newsz; newsz 263 kernel/vm.c uvmdealloc(pagetable_t pagetable, uint64 oldsz, uint64 newsz) newsz 265 kernel/vm.c if(newsz >= oldsz) newsz 268 kernel/vm.c if(PGROUNDUP(newsz) < PGROUNDUP(oldsz)){ newsz 269 kernel/vm.c int npages = (PGROUNDUP(oldsz) - PGROUNDUP(newsz)) / PGSIZE; newsz 270 kernel/vm.c uvmunmap(pagetable, PGROUNDUP(newsz), npages, 1); newsz 273 kernel/vm.c return newsz;