diff options
-rw-r--r-- | fs/super.c | 1 | ||||
-rw-r--r-- | include/linux/writeback.h | 4 | ||||
-rw-r--r-- | mm/page-writeback.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c index dc72491a19f9..1527e6a0ee35 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/kobject.h> | 37 | #include <linux/kobject.h> |
38 | #include <linux/mutex.h> | 38 | #include <linux/mutex.h> |
39 | #include <linux/file.h> | 39 | #include <linux/file.h> |
40 | #include <linux/backing-dev.h> | ||
40 | #include <asm/uaccess.h> | 41 | #include <asm/uaccess.h> |
41 | #include "internal.h" | 42 | #include "internal.h" |
42 | 43 | ||
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 47e1c686cb02..cc97d6caf2b3 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
@@ -106,10 +106,14 @@ static inline void inode_sync_wait(struct inode *inode) | |||
106 | /* | 106 | /* |
107 | * mm/page-writeback.c | 107 | * mm/page-writeback.c |
108 | */ | 108 | */ |
109 | #ifdef CONFIG_BLOCK | ||
109 | void laptop_io_completion(struct backing_dev_info *info); | 110 | void laptop_io_completion(struct backing_dev_info *info); |
110 | void laptop_sync_completion(void); | 111 | void laptop_sync_completion(void); |
111 | void laptop_mode_sync(struct work_struct *work); | 112 | void laptop_mode_sync(struct work_struct *work); |
112 | void laptop_mode_timer_fn(unsigned long data); | 113 | void laptop_mode_timer_fn(unsigned long data); |
114 | #else | ||
115 | static inline void laptop_sync_completion(void) { } | ||
116 | #endif | ||
113 | void throttle_vm_writeout(gfp_t gfp_mask); | 117 | void throttle_vm_writeout(gfp_t gfp_mask); |
114 | 118 | ||
115 | /* These are exported to sysctl. */ | 119 | /* These are exported to sysctl. */ |
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 0d7bbe859550..9886424e1864 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -694,6 +694,7 @@ int dirty_writeback_centisecs_handler(ctl_table *table, int write, | |||
694 | return 0; | 694 | return 0; |
695 | } | 695 | } |
696 | 696 | ||
697 | #ifdef CONFIG_BLOCK | ||
697 | void laptop_mode_timer_fn(unsigned long data) | 698 | void laptop_mode_timer_fn(unsigned long data) |
698 | { | 699 | { |
699 | struct request_queue *q = (struct request_queue *)data; | 700 | struct request_queue *q = (struct request_queue *)data; |
@@ -735,6 +736,7 @@ void laptop_sync_completion(void) | |||
735 | 736 | ||
736 | rcu_read_unlock(); | 737 | rcu_read_unlock(); |
737 | } | 738 | } |
739 | #endif | ||
738 | 740 | ||
739 | /* | 741 | /* |
740 | * If ratelimit_pages is too high then we can get into dirty-data overload | 742 | * If ratelimit_pages is too high then we can get into dirty-data overload |