Drop some headers from mm.h
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 17 Oct 2007 06:29:23 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:55 +0000 (08:42 -0700)
mm.h doesn't use directly anything from mutex.h and backing-dev.h, so
remove them and add them back to files which need them.

Cross-compile tested on many configs and archs.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/write.c
include/linux/mm.h
mm/fremap.c
mm/mmap.c
mm/truncate.c

index bf0955d91f85de39264e5575a77208f8f087a635..9a849ad3c489411c8043cb66d50f8feceadfe7b8 100644 (file)
@@ -8,7 +8,7 @@
  * as published by the Free Software Foundation; either version
  * 2 of the License, or (at your option) any later version.
  */
-
+#include <linux/backing-dev.h>
 #include <linux/slab.h>
 #include <linux/fs.h>
 #include <linux/pagemap.h>
index 7e87e1b1662e55b5fbcfc81e022e56bb9807881a..520238cbae5d10424ead32f6c9b03472c790decf 100644 (file)
@@ -10,9 +10,7 @@
 #include <linux/mmzone.h>
 #include <linux/rbtree.h>
 #include <linux/prio_tree.h>
-#include <linux/mutex.h>
 #include <linux/debug_locks.h>
-#include <linux/backing-dev.h>
 #include <linux/mm_types.h>
 
 struct mempolicy;
index 95bcb5641c722b6f4d7eb49801320e0a266f7c83..37a93f8f3aec724437cef7aa0cba1633b44cdcd1 100644 (file)
@@ -5,7 +5,7 @@
  *
  * started by Ingo Molnar, Copyright (C) 2002, 2003
  */
-
+#include <linux/backing-dev.h>
 #include <linux/mm.h>
 #include <linux/swap.h>
 #include <linux/file.h>
index 0d40e66c841b2d2cad8e03ebc6d5e16491b0774b..9e685b9abcde33517dd8ce0d6f62475609f7f05d 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -7,6 +7,7 @@
  */
 
 #include <linux/slab.h>
+#include <linux/backing-dev.h>
 #include <linux/mm.h>
 #include <linux/shm.h>
 #include <linux/mman.h>
index ff78505453d42ac45c5e3fd563ff05606a9d3786..cadc15653ddeeaa311c80f794b6a564ae2f36fc8 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/backing-dev.h>
 #include <linux/mm.h>
 #include <linux/swap.h>
 #include <linux/module.h>