aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/fs-writeback.c6
-rw-r--r--include/linux/writeback.h5
2 files changed, 6 insertions, 5 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 */
35struct wb_writeback_work { 41struct wb_writeback_work {
diff --git a/include/linux/writeback.h b/include/linux/writeback.h
index b30419cd425e..4e0a55493023 100644
--- a/include/linux/writeback.h
+++ b/include/linux/writeback.h
@@ -25,11 +25,6 @@ DECLARE_PER_CPU(int, dirty_throttle_leaks);
25#define DIRTY_SCOPE 8 25#define DIRTY_SCOPE 8
26#define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2) 26#define DIRTY_FULL_SCOPE (DIRTY_SCOPE / 2)
27 27
28/*
29 * 4MB minimal write chunk size
30 */
31#define MIN_WRITEBACK_PAGES (4096UL >> (PAGE_CACHE_SHIFT - 10))
32
33struct backing_dev_info; 28struct backing_dev_info;
34 29
35/* 30/*