]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: move mm flags to mm_types.h
authorNanyong Sun <sunnanyong@huawei.com>
Thu, 26 Sep 2024 07:49:22 +0000 (15:49 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:28:48 +0000 (21:28 -0700)
commitf16d23850ad1e4bbabdeeddf31c99c9e448ea1b7
tree83a6059c0b289c437104165805f4c43f85634247
parentec9d4a537fd90766f1e40034562c8b5213794555
mm: move mm flags to mm_types.h

The types of mm flags are now far beyond the core dump related features.
This patch moves mm flags from linux/sched/coredump.h to linux/mm_types.h.
The linux/sched/coredump.h has include the mm_types.h, so the C files
related to coredump does not need to change head file inclusion.  In
addition, the inclusion of sched/coredump.h now can be deleted from the C
files that irrelevant to core dump.

Link: https://lkml.kernel.org/r/20240926074922.2721274-1-sunnanyong@huawei.com
Signed-off-by: Nanyong Sun <sunnanyong@huawei.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
13 files changed:
include/linux/huge_mm.h
include/linux/khugepaged.h
include/linux/ksm.h
include/linux/mm_types.h
include/linux/oom.h
include/linux/sched/coredump.h
kernel/events/uprobes.c
kernel/fork.c
mm/huge_memory.c
mm/khugepaged.c
mm/ksm.c
mm/memory.c
mm/oom_kill.c