Skip to content

Commit

Permalink
writeback: move MIN_WRITEBACK_PAGES to fs-writeback.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Fengguang committed Jan 8, 2012
1 parent bdaac49 commit bc31b86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -29,6 +30,11 @@
#include <linux/tracepoint.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
*/
Expand Down
5 changes: 0 additions & 5 deletions include/linux/writeback.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ DECLARE_PER_CPU(int, dirty_throttle_leaks);
#define DIRTY_SCOPE 8
#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;

/*
Expand Down

0 comments on commit bc31b86

Please sign in to comment.