提交 bc31b86a 编写于 作者: W Wu Fengguang

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: NRandy Dunlap <rdunlap@xenotime.net>
Acked-by: NRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
上级 bdaac490
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/freezer.h> #include <linux/freezer.h>
#include <linux/writeback.h> #include <linux/writeback.h>
...@@ -29,6 +30,11 @@ ...@@ -29,6 +30,11 @@
#include <linux/tracepoint.h> #include <linux/tracepoint.h>
#include "internal.h" #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 * Passed into wb_writeback(), essentially a subset of writeback_control
*/ */
......
...@@ -25,11 +25,6 @@ DECLARE_PER_CPU(int, dirty_throttle_leaks); ...@@ -25,11 +25,6 @@ DECLARE_PER_CPU(int, dirty_throttle_leaks);
#define DIRTY_SCOPE 8 #define DIRTY_SCOPE 8
#define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2) #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; struct backing_dev_info;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册