diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2012-01-08 02:41:55 (GMT) |
---|---|---|
committer | Wu Fengguang <fengguang.wu@intel.com> | 2012-01-08 02:35:19 (GMT) |
commit | bc31b86a5923fad5f3fbb6192f767f410241ba27 (patch) | |
tree | 9c1c0a21b7324567088e37e3c30697f5ebd1c621 | |
parent | bdaac4902a8225bf247ecaeac46c4b2980cc70e5 (diff) | |
download | linux-fsl-qoriq-bc31b86a5923fad5f3fbb6192f767f410241ba27.tar.xz |
writeback: move MIN_WRITEBACK_PAGES to fs-writeback.c
Fix compile error
fs/fs-writeback.c:515:33: error: ‘PAGE_CACHE_SHIFT’ undeclared (first use in this function)
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
-rw-r--r-- | fs/fs-writeback.c | 6 | ||||
-rw-r--r-- | include/linux/writeback.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 92d353e..22e2d42 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -20,6 +20,7 @@ #include <linux/sched.h> #include <linux/fs.h> #include <linux/mm.h> +#include <linux/pagemap.h> #include <linux/kthread.h> #include <linux/freezer.h> #include <linux/writeback.h> @@ -30,6 +31,11 @@ #include "internal.h" /* + * 4MB minimal write chunk size + */ +#define MIN_WRITEBACK_PAGES (4096UL >> (PAGE_CACHE_SHIFT - 10)) + +/* * Passed into wb_writeback(), essentially a subset of writeback_control */ struct wb_writeback_work { diff --git a/include/linux/writeback.h b/include/linux/writeback.h index b30419c..4e0a554 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -25,11 +25,6 @@ DECLARE_PER_CPU(int, dirty_throttle_leaks); #define DIRTY_SCOPE 8 #define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2) -/* - * 4MB minimal write chunk size - */ -#define MIN_WRITEBACK_PAGES (4096UL >> (PAGE_CACHE_SHIFT - 10)) - struct backing_dev_info; /* |