aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/writeback.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/writeback.h')
-rw-r--r--include/linux/writeback.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h
index 36520ded3e06..d63ef8f9609f 100644
--- a/include/linux/writeback.h
+++ b/include/linux/writeback.h
@@ -56,15 +56,6 @@ struct writeback_control {
56 unsigned for_reclaim:1; /* Invoked from the page allocator */ 56 unsigned for_reclaim:1; /* Invoked from the page allocator */
57 unsigned range_cyclic:1; /* range_start is cyclic */ 57 unsigned range_cyclic:1; /* range_start is cyclic */
58 unsigned more_io:1; /* more io to be dispatched */ 58 unsigned more_io:1; /* more io to be dispatched */
59 /*
60 * write_cache_pages() won't update wbc->nr_to_write and
61 * mapping->writeback_index if no_nrwrite_index_update
62 * is set. write_cache_pages() may write more than we
63 * requested and we want to make sure nr_to_write and
64 * writeback_index are updated in a consistent manner
65 * so we use a single control to update them
66 */
67 unsigned no_nrwrite_index_update:1;
68}; 59};
69 60
70/* 61/*
@@ -96,8 +87,14 @@ static inline void inode_sync_wait(struct inode *inode)
96/* 87/*
97 * mm/page-writeback.c 88 * mm/page-writeback.c
98 */ 89 */
99void laptop_io_completion(void); 90#ifdef CONFIG_BLOCK
91void laptop_io_completion(struct backing_dev_info *info);
100void laptop_sync_completion(void); 92void laptop_sync_completion(void);
93void laptop_mode_sync(struct work_struct *work);
94void laptop_mode_timer_fn(unsigned long data);
95#else
96static inline void laptop_sync_completion(void) { }
97#endif
101void throttle_vm_writeout(gfp_t gfp_mask); 98void throttle_vm_writeout(gfp_t gfp_mask);
102 99
103/* These are exported to sysctl. */ 100/* These are exported to sysctl. */