From: Rusty Russell Date: Thu, 12 Mar 2009 20:35:44 +0000 (-0600) Subject: cpumask: mm_cpumask for accessing the struct mm_struct's cpu_vm_mask. X-Git-Tag: 2.1b_release~13809^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45e575ab9bfada5a5ef1b6174f8e749b1ecf0864;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git 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 --- diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 92915e8..d84feb7 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 */