Re: [PATCH] Avoiding mmap fragmentation (against 2.6.12-rc4) to

Andrew Morton
2005-05-12T00:59:01Z

Wolfgang Wander <wwc@rentec.com> wrote:
>
> diff -rpu linux-2.6.12-rc4-vanilla/fs/binfmt_elf.c linux-2.6.12-rc4-wwc/fs/binfmt_elf.c
> --- linux-2.6.12-rc4-vanilla/fs/binfmt_elf.c 2005-05-10 18:28:59.958415676 -0400
> +++ linux-2.6.12-rc4-wwc/fs/binfmt_elf.c 2005-05-10 16:34:23.696894470 -0400
> @@ -775,6 +775,7 @@ static int load_elf_binary(struct linux_
> change some of these later */
> set_mm_counter(current->mm, rss, 0);
> current->mm->free_area_cache = current->mm->mmap_base;
> + current->mm->cached_hole_size = current->mm->cached_hole_size;

eh?