diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-12 23:35:44 +0300 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-12 07:05:44 +0300 |
commit | 45e575ab9bfada5a5ef1b6174f8e749b1ecf0864 (patch) | |
tree | 00d1346d11fe554cf505b287eb2b9445d97c3596 | |
parent | 76e6eee03353f01bfca707d4dbb1f10a4ee27dc0 (diff) | |
download | linux-45e575ab9bfada5a5ef1b6174f8e749b1ecf0864.tar.xz |
cpumask: mm_cpumask for accessing the struct mm_struct's cpu_vm_mask.
This allows us to change the representation (to a dangling bitmap or
cpumask_var_t) without breaking all the callers: they can use
mm_cpumask() now and won't see a difference as the changes roll into
linux-next.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r-- | include/linux/mm_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 92915e81443f..d84feb7bdbf0 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -276,4 +276,7 @@ struct mm_struct { #endif }; +/* Future-safe accessor for struct mm_struct's cpu_vm_mask. */ +#define mm_cpumask(mm) (&(mm)->cpu_vm_mask) + #endif /* _LINUX_MM_TYPES_H */ |