diff options
Diffstat (limited to 'include/linux/writeback.h')
-rw-r--r-- | include/linux/writeback.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index c7c3337c3a88..bef7d66601cb 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
@@ -62,15 +62,13 @@ struct writeback_control { | |||
62 | unsigned for_reclaim:1; /* Invoked from the page allocator */ | 62 | unsigned for_reclaim:1; /* Invoked from the page allocator */ |
63 | unsigned for_writepages:1; /* This is a writepages() call */ | 63 | unsigned for_writepages:1; /* This is a writepages() call */ |
64 | unsigned range_cyclic:1; /* range_start is cyclic */ | 64 | unsigned range_cyclic:1; /* range_start is cyclic */ |
65 | 65 | unsigned more_io:1; /* more io to be dispatched */ | |
66 | void *fs_private; /* For use by ->writepages() */ | ||
67 | }; | 66 | }; |
68 | 67 | ||
69 | /* | 68 | /* |
70 | * fs/fs-writeback.c | 69 | * fs/fs-writeback.c |
71 | */ | 70 | */ |
72 | void writeback_inodes(struct writeback_control *wbc); | 71 | void writeback_inodes(struct writeback_control *wbc); |
73 | void wake_up_inode(struct inode *inode); | ||
74 | int inode_wait(void *); | 72 | int inode_wait(void *); |
75 | void sync_inodes_sb(struct super_block *, int wait); | 73 | void sync_inodes_sb(struct super_block *, int wait); |
76 | void sync_inodes(int wait); | 74 | void sync_inodes(int wait); |
@@ -82,6 +80,13 @@ static inline void wait_on_inode(struct inode *inode) | |||
82 | wait_on_bit(&inode->i_state, __I_LOCK, inode_wait, | 80 | wait_on_bit(&inode->i_state, __I_LOCK, inode_wait, |
83 | TASK_UNINTERRUPTIBLE); | 81 | TASK_UNINTERRUPTIBLE); |
84 | } | 82 | } |
83 | static inline void inode_sync_wait(struct inode *inode) | ||
84 | { | ||
85 | might_sleep(); | ||
86 | wait_on_bit(&inode->i_state, __I_SYNC, inode_wait, | ||
87 | TASK_UNINTERRUPTIBLE); | ||
88 | } | ||
89 | |||
85 | 90 | ||
86 | /* | 91 | /* |
87 | * mm/page-writeback.c | 92 | * mm/page-writeback.c |
@@ -99,6 +104,10 @@ extern int dirty_expire_interval; | |||
99 | extern int block_dump; | 104 | extern int block_dump; |
100 | extern int laptop_mode; | 105 | extern int laptop_mode; |
101 | 106 | ||
107 | extern int dirty_ratio_handler(struct ctl_table *table, int write, | ||
108 | struct file *filp, void __user *buffer, size_t *lenp, | ||
109 | loff_t *ppos); | ||
110 | |||
102 | struct ctl_table; | 111 | struct ctl_table; |
103 | struct file; | 112 | struct file; |
104 | int dirty_writeback_centisecs_handler(struct ctl_table *, int, struct file *, | 113 | int dirty_writeback_centisecs_handler(struct ctl_table *, int, struct file *, |