btrfs: fixup/remove module.h usage as required
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 14 Feb 2013 20:50:15 +0000 (13:50 -0700)
committerChris Mason <chris.mason@fusionio.com>
Fri, 1 Mar 2013 20:01:01 +0000 (15:01 -0500)
We want to avoid module.h where posible, since it in turn includes
nearly all of header space.  This means removing it where it is not
required, and using export.h where we are only exporting symbols via
EXPORT_SYMBOL and friends.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_map.c
fs/btrfs/sysfs.c
fs/btrfs/ulist.c

index 0306665cb1d70174ffd6b050b260c65d8db4a674..f173c5af64610de66597cce1e38ac493729d6125 100644 (file)
@@ -4,7 +4,6 @@
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/page-flags.h>
-#include <linux/module.h>
 #include <linux/spinlock.h>
 #include <linux/blkdev.h>
 #include <linux/swap.h>
index fdb7a8db3b5748911e5820f9b588c5a264a6a8bc..2834ca5768ea8124cf9abd468906e4867f4d6dc2 100644 (file)
@@ -1,6 +1,5 @@
 #include <linux/err.h>
 #include <linux/slab.h>
-#include <linux/module.h>
 #include <linux/spinlock.h>
 #include <linux/hardirq.h>
 #include "ctree.h"
index daac9ae6d7319b4f2cc68c0893a86c7d779e6516..5b326cd60a4aa3c048eefe730312248d73cf47ba 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/spinlock.h>
 #include <linux/completion.h>
 #include <linux/buffer_head.h>
-#include <linux/module.h>
 #include <linux/kobject.h>
 
 #include "ctree.h"
index 99be4c138db6dac51fbcb7afefc6931ce3cf583d..ddc61cad008002eb2a06af77a4d10595376b37e1 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #include <linux/slab.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include "ulist.h"
 
 /*