diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2012-01-07 21:41:55 -0500 |
---|---|---|
committer | Wu Fengguang <fengguang.wu@intel.com> | 2012-01-07 21:35:19 -0500 |
commit | bc31b86a5923fad5f3fbb6192f767f410241ba27 (patch) | |
tree | 9c1c0a21b7324567088e37e3c30697f5ebd1c621 /fs/fs-writeback.c | |
parent | bdaac4902a8225bf247ecaeac46c4b2980cc70e5 (diff) |
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 @@ | |||
20 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
21 | #include <linux/fs.h> | 21 | #include <linux/fs.h> |
22 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
23 | #include <linux/pagemap.h> | ||
23 | #include <linux/kthread.h> | 24 | #include <linux/kthread.h> |
24 | #include <linux/freezer.h> | 25 | #include <linux/freezer.h> |
25 | #include <linux/writeback.h> | 26 | #include <linux/writeback.h> |
@@ -30,6 +31,11 @@ | |||
30 | #include "internal.h" | 31 | #include "internal.h" |
31 | 32 | ||
32 | /* | 33 | /* |
34 | * 4MB minimal write chunk size | ||
35 | */ | ||
36 | #define MIN_WRITEBACK_PAGES (4096UL >> (PAGE_CACHE_SHIFT - 10)) | ||
37 | |||
38 | /* | ||
33 | * Passed into wb_writeback(), essentially a subset of writeback_control | 39 | * Passed into wb_writeback(), essentially a subset of writeback_control |
34 | */ | 40 | */ |
35 | struct wb_writeback_work { | 41 | struct wb_writeback_work { |