projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b17fa5
)
cpumask: use mm_cpumask() wrapper: kernel/fork.c
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 31 Mar 2009 04:05:12 +0000
(22:05 -0600)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 30 Mar 2009 11:35:13 +0000
(22:05 +1030)
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 <rusty@rustcorp.com.au>
kernel/fork.c
patch
|
blob
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index 6715ebc3761de3ed10eeda84ff932e59ff8289c5..47c15840a3813ee3fcabe5f89d04bf73c08b66c2 100644
(file)
--- 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;
- cpu
s_clear(mm->cpu_vm_mask
);
+ cpu
mask_clear(mm_cpumask(mm)
);
mm->mm_rb = RB_ROOT;
rb_link = &mm->mm_rb.rb_node;
rb_parent = NULL;