VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Wolfgang Wander <wwc@rentec.com> 2005-06-21 17:14:49 -0700 committer: Linus Torvalds <torvalds@ppc970.osdl.org> 2005-06-21 18:46:16 -0700 commit: 1363c3cd8603a913a27e2995dccbd70d5312d8e6 parent: e7c8d5c9955a4d2e88e36b640563f5d6d5aba48a
Commit Summary:
[PATCH] Avoiding mmap fragmentation
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
index 009b8920c1ff..dd9baabaf016 100644
--- a/fs/binfmt_aout.c
+++ b/fs/binfmt_aout.c
@@ -316,6 +316,7 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
 	current->mm->brk = ex.a_bss +
 		(current->mm->start_brk = N_BSSADDR(ex));
 	current->mm->free_area_cache = current->mm->mmap_base;
+	current->mm->cached_hole_size = 0;
 
 	set_mm_counter(current->mm, rss, 0);
 	current->mm->mmap = NULL;