瀏覽代碼

btrfs: fixup/remove module.h usage as required

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>
Paul Gortmaker 12 年之前
父節點
當前提交
180e001cd5
共有 4 個文件被更改,包括 1 次插入4 次删除
  1. 0 1
      fs/btrfs/extent_io.c
  2. 0 1
      fs/btrfs/extent_map.c
  3. 0 1
      fs/btrfs/sysfs.c
  4. 1 1
      fs/btrfs/ulist.c

+ 0 - 1
fs/btrfs/extent_io.c

@@ -4,7 +4,6 @@
 #include <linux/mm.h>
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/pagemap.h>
 #include <linux/page-flags.h>
 #include <linux/page-flags.h>
-#include <linux/module.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
 #include <linux/blkdev.h>
 #include <linux/blkdev.h>
 #include <linux/swap.h>
 #include <linux/swap.h>

+ 0 - 1
fs/btrfs/extent_map.c

@@ -1,6 +1,5 @@
 #include <linux/err.h>
 #include <linux/err.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
-#include <linux/module.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
 #include <linux/hardirq.h>
 #include <linux/hardirq.h>
 #include "ctree.h"
 #include "ctree.h"

+ 0 - 1
fs/btrfs/sysfs.c

@@ -21,7 +21,6 @@
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
 #include <linux/completion.h>
 #include <linux/completion.h>
 #include <linux/buffer_head.h>
 #include <linux/buffer_head.h>
-#include <linux/module.h>
 #include <linux/kobject.h>
 #include <linux/kobject.h>
 
 
 #include "ctree.h"
 #include "ctree.h"

+ 1 - 1
fs/btrfs/ulist.c

@@ -5,7 +5,7 @@
  */
  */
 
 
 #include <linux/slab.h>
 #include <linux/slab.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include "ulist.h"
 #include "ulist.h"
 
 
 /*
 /*