From: Rusty Russell Date: Tue, 31 Mar 2009 04:05:12 +0000 (-0600) Subject: cpumask: use mm_cpumask() wrapper: kernel/fork.c X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9489424454c93f4d225d7af47978f8c7e84bf4d4;p=linux-2.6-omap-h63xx.git cpumask: use mm_cpumask() wrapper: kernel/fork.c Impact: futureproof Makes code futureproof against the impending change to mm->cpu_vm_mask. It's also a chance to use the new cpumask_ ops which take a pointer. Signed-off-by: Rusty Russell --- diff --git a/kernel/fork.c b/kernel/fork.c index 6715ebc3761..47c15840a38 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -284,7 +284,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) mm->free_area_cache = oldmm->mmap_base; mm->cached_hole_size = ~0UL; mm->map_count = 0; - cpus_clear(mm->cpu_vm_mask); + cpumask_clear(mm_cpumask(mm)); mm->mm_rb = RB_ROOT; rb_link = &mm->mm_rb.rb_node; rb_parent = NULL;