* [Question] detach_vmas_to_be_unmapped
@ 2007-02-16 21:38 akuster
0 siblings, 0 replies; only message in thread
From: akuster @ 2007-02-16 21:38 UTC (permalink / raw)
To: lkml
Hello,
I am a bit confused on why the vm start and end address where swapped in
arch_unmap_area and arch_unmap_area_topdown functions after the official
Avoiding mmap fragmentation ( 1363c3cd8603a913a27e2995dccbd70d5312d8e6 )
patch.
Prior to this patch arch_unmap_area() used area->vm_start and
arch_unmap_area_topdown used area->vm_end after the patch the following
change showed up.
if (mm->unmap_area == arch_unmap_area)
addr = prev ? prev->vm_start : mm->mmap_base;
else
addr = vma ? vma->vm_end : mm->mmap_base;
Using Wolfgang Wander's leakme.c test, I get the same results seen with
his original "Avoiding mmap fragmentation" patch as I do after swapping
the start & end address in the above code segment.
Is it just a typo in the official patch or am I missing the much bigger
picture?
Note: I have only run this on an Pentium4 with 1GiG memory.
TIA
Armin
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-16 21:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-16 21:38 [Question] detach_vmas_to_be_unmapped akuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox