aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index fd57442186cb..3342067ca436 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -190,8 +190,8 @@ int __filemap_fdatawrite_range(struct address_space *mapping, loff_t start,
190 struct writeback_control wbc = { 190 struct writeback_control wbc = {
191 .sync_mode = sync_mode, 191 .sync_mode = sync_mode,
192 .nr_to_write = mapping->nrpages * 2, 192 .nr_to_write = mapping->nrpages * 2,
193 .start = start, 193 .range_start = start,
194 .end = end, 194 .range_end = end,
195 }; 195 };
196 196
197 if (!mapping_cap_writeback_dirty(mapping)) 197 if (!mapping_cap_writeback_dirty(mapping))
@@ -204,7 +204,7 @@ int __filemap_fdatawrite_range(struct address_space *mapping, loff_t start,
204static inline int __filemap_fdatawrite(struct address_space *mapping, 204static inline int __filemap_fdatawrite(struct address_space *mapping,
205 int sync_mode) 205 int sync_mode)
206{ 206{
207 return __filemap_fdatawrite_range(mapping, 0, 0, sync_mode); 207 return __filemap_fdatawrite_range(mapping, 0, LLONG_MAX, sync_mode);
208} 208}
209 209
210int filemap_fdatawrite(struct address_space *mapping) 210int filemap_fdatawrite(struct address_space *mapping)