summaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-22 08:04:29 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-22 08:04:29 -0700
commitc78b023ffcddf5868ec0bedc07942ac62c11154d (patch)
tree47753685c4379d42d5b3dd0ebc7c9dbe4afb88ab /fs/exec.c
parent490b582a14d4611d2942a7d8a188c9eca8ecf44b (diff)
[PATCH] numa api: Add VMA hooks for policy
From: Andi Kleen <ak@suse.de> NUMA API adds a policy to each VMA. During VMA creattion, merging and splitting these policies must be handled properly. This patch adds the calls to this. It is a nop when CONFIG_NUMA is not defined.
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index b7e544a0b5ed..0e6fdcf20984 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -427,6 +427,7 @@ int setup_arg_pages(struct linux_binprm *bprm, int executable_stack)
mpnt->vm_ops = NULL;
mpnt->vm_pgoff = 0;
mpnt->vm_file = NULL;
+ mpol_set_vma_default(mpnt);
INIT_LIST_HEAD(&mpnt->shared);
mpnt->vm_private_data = (void *) 0;
insert_vm_struct(mm, mpnt);