Skip to content

Commit 45e575a

Browse files
committed
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>
1 parent 76e6eee commit 45e575a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/linux/mm_types.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,7 @@ struct mm_struct {
276276
#endif
277277
};
278278

279+
/* Future-safe accessor for struct mm_struct's cpu_vm_mask. */
280+
#define mm_cpumask(mm) (&(mm)->cpu_vm_mask)
281+
279282
#endif /* _LINUX_MM_TYPES_H */

0 commit comments

Comments
 (0)