summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-02-08 12:51:29 -0500
committerIngo Molnar <mingo@kernel.org>2017-03-02 02:42:28 -0500
commit6e84f31522f931027bf695752087ece278c10d3f (patch)
tree77c09a0bb2878e9725539f310f43dd38137c5d97 /fs
parent4eb5aaa3af8a54e5e9bac90e2b42bbab1f1ee5a3 (diff)
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/mm.h>
We are going to split <linux/sched/mm.h> out of <linux/sched.h>, which will have to be picked up from other headers and a couple of .c files. Create a trivial placeholder <linux/sched/mm.h> file that just maps to <linux/sched.h> to make this patch obviously correct and bisectable. The APIs that are going to be moved first are: mm_alloc() __mmdrop() mmdrop() mmdrop_async_fn() mmdrop_async() mmget_not_zero() mmput() mmput_async() get_task_mm() mm_access() mm_release() Include the new header in the files that are going to need it. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/exec.c1
-rw-r--r--fs/proc/array.c1
-rw-r--r--fs/proc/base.c1
-rw-r--r--fs/proc/task_mmu.c1
-rw-r--r--fs/proc/task_nommu.c2
-rw-r--r--fs/userfaultfd.c1
6 files changed, 7 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index e595e1529581..8929da96cca1 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -32,6 +32,7 @@
32#include <linux/swap.h> 32#include <linux/swap.h>
33#include <linux/string.h> 33#include <linux/string.h>
34#include <linux/init.h> 34#include <linux/init.h>
35#include <linux/sched/mm.h>
35#include <linux/pagemap.h> 36#include <linux/pagemap.h>
36#include <linux/perf_event.h> 37#include <linux/perf_event.h>
37#include <linux/highmem.h> 38#include <linux/highmem.h>
diff --git a/fs/proc/array.c b/fs/proc/array.c
index fe12b519d09b..61bea3a4ecc5 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -60,6 +60,7 @@
60#include <linux/tty.h> 60#include <linux/tty.h>
61#include <linux/string.h> 61#include <linux/string.h>
62#include <linux/mman.h> 62#include <linux/mman.h>
63#include <linux/sched/mm.h>
63#include <linux/proc_fs.h> 64#include <linux/proc_fs.h>
64#include <linux/ioport.h> 65#include <linux/ioport.h>
65#include <linux/uaccess.h> 66#include <linux/uaccess.h>
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 27af4ea315a3..9efe12376af1 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -86,6 +86,7 @@
86#include <linux/fs_struct.h> 86#include <linux/fs_struct.h>
87#include <linux/slab.h> 87#include <linux/slab.h>
88#include <linux/sched/autogroup.h> 88#include <linux/sched/autogroup.h>
89#include <linux/sched/mm.h>
89#include <linux/flex_array.h> 90#include <linux/flex_array.h>
90#include <linux/posix-timers.h> 91#include <linux/posix-timers.h>
91#ifdef CONFIG_HARDWALL 92#ifdef CONFIG_HARDWALL
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index ee3efb229ef6..f08bd31c1081 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -11,6 +11,7 @@
11#include <linux/mempolicy.h> 11#include <linux/mempolicy.h>
12#include <linux/rmap.h> 12#include <linux/rmap.h>
13#include <linux/swap.h> 13#include <linux/swap.h>
14#include <linux/sched/mm.h>
14#include <linux/swapops.h> 15#include <linux/swapops.h>
15#include <linux/mmu_notifier.h> 16#include <linux/mmu_notifier.h>
16#include <linux/page_idle.h> 17#include <linux/page_idle.h>
diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c
index 1ef97cfcf422..23266694db11 100644
--- a/fs/proc/task_nommu.c
+++ b/fs/proc/task_nommu.c
@@ -7,6 +7,8 @@
7#include <linux/ptrace.h> 7#include <linux/ptrace.h>
8#include <linux/slab.h> 8#include <linux/slab.h>
9#include <linux/seq_file.h> 9#include <linux/seq_file.h>
10#include <linux/sched/mm.h>
11
10#include "internal.h" 12#include "internal.h"
11 13
12/* 14/*
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c
index 3c421d06a18e..18d12bfff770 100644
--- a/fs/userfaultfd.c
+++ b/fs/userfaultfd.c
@@ -15,6 +15,7 @@
15#include <linux/list.h> 15#include <linux/list.h>
16#include <linux/hashtable.h> 16#include <linux/hashtable.h>
17#include <linux/sched.h> 17#include <linux/sched.h>
18#include <linux/sched/mm.h>
18#include <linux/mm.h> 19#include <linux/mm.h>
19#include <linux/poll.h> 20#include <linux/poll.h>
20#include <linux/slab.h> 21#include <linux/slab.h>