nodemask: Split out include/linux/nodemask_types.h
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 6 Dec 2022 19:32:23 +0000 (14:32 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 21 Dec 2023 00:26:30 +0000 (19:26 -0500)
commitbea32141764bc76db2d75c9484b71ded56119ab4
tree2d6fb200da445be349d369cf03e57a54be60bdfd
parentea115c248a478ce1acbf4776e4666fb663285b2f
nodemask: Split out include/linux/nodemask_types.h

sched.h, which defines task_struct, needs nodemask_t - but sched.h is a
frequently used header and ideally shouldn't be pulling in any more code
that it needs to.

This splits out nodemask_types.h which has the definition sched.h needs,
which will avoid a circular header dependency in the alloc tagging patch
series, and as a bonus should speed up kernel build times.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
include/linux/nodemask.h
include/linux/nodemask_types.h [new file with mode: 0644]
include/linux/sched.h