Skip to content

Commit

Permalink
btrfs: fixup/remove module.h usage as required
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Gortmaker authored and Chris Mason committed Mar 1, 2013
1 parent 124fe66 commit 180e001
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/extent_map.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion fs/btrfs/ulist.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include <linux/slab.h>
#include <linux/module.h>
#include <linux/export.h>
#include "ulist.h"

/*
Expand Down

0 comments on commit 180e001

Please sign in to comment.