summaryrefslogtreecommitdiff
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2012-01-07 20:41:55 -0600
committerWu Fengguang <fengguang.wu@intel.com>2012-01-08 10:35:19 +0800
commitbc31b86a5923fad5f3fbb6192f767f410241ba27 (patch)
tree9c1c0a21b7324567088e37e3c30697f5ebd1c621 /fs/fs-writeback.c
parentbdaac4902a8225bf247ecaeac46c4b2980cc70e5 (diff)
downloadlwn-bc31b86a5923fad5f3fbb6192f767f410241ba27.tar.gz
lwn-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.c6
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 {