diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2012-01-08 03:41:55 +0100 |
---|---|---|
committer | Wu Fengguang <fengguang.wu@intel.com> | 2012-01-08 03:35:19 +0100 |
commit | bc31b86a5923fad5f3fbb6192f767f410241ba27 (patch) | |
tree | 9c1c0a21b7324567088e37e3c30697f5ebd1c621 /fs/fs-writeback.c | |
parent | writeback: balanced_rate cannot exceed write bandwidth (diff) | |
download | linux-bc31b86a5923fad5f3fbb6192f767f410241ba27.tar.xz linux-bc31b86a5923fad5f3fbb6192f767f410241ba27.zip |
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>
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r-- | fs/fs-writeback.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 92d353e069dc..22e2d42742a9 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 { |