diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-05-22 08:04:29 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-22 08:04:29 -0700 |
| commit | c78b023ffcddf5868ec0bedc07942ac62c11154d (patch) | |
| tree | 47753685c4379d42d5b3dd0ebc7c9dbe4afb88ab /fs/exec.c | |
| parent | 490b582a14d4611d2942a7d8a188c9eca8ecf44b (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.c | 1 |
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); |
