btrfs: fixup module.h usage as required
PATCH 1/1 btrfs: fixup module.h usage as required
Delete the instances of module.h that aren't actually used or needed. Replace with export.h as required.
Signed-off-by Paul Gortmaker <[email protected]>
---
[This is 100% independent of any cleanups I'm working on, so it
can go in via the btrfs tree seamlessly.]
fs/btrfs/extent_io.c +0 -1
@@ -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>
fs/btrfs/extent_map.c +0 -1
@@ -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"
fs/btrfs/sysfs.c +0 -1
@@ -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"
fs/btrfs/ulist.c +1 -1
@@ -5,7 +5,7 @@*/ #include <linux/slab.h> -#include <linux/module.h> +#include <linux/export.h> #include "ulist.h" /*
Signature · 1 line
1.7.9.1
Quoted 2 lines · Paul Gortmaker
Delete the instances of
module.hthat aren't actually used or needed. Replace withexport.has required.
I'm using this patch without problem since you published it (compressed /home with hourly snapshot delete/creation).
Thanks a lot for your work,
Andrea