aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/filemap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 3e49fe13d6ac..9cbf4fea4a59 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2309,10 +2309,10 @@ __generic_file_aio_write_nolock(struct kiocb *iocb, const struct iovec *iov,
2309 * semantics. 2309 * semantics.
2310 */ 2310 */
2311 endbyte = pos + written_buffered - written - 1; 2311 endbyte = pos + written_buffered - written - 1;
2312 err = do_sync_file_range(file, pos, endbyte, 2312 err = do_sync_mapping_range(file->f_mapping, pos, endbyte,
2313 SYNC_FILE_RANGE_WAIT_BEFORE| 2313 SYNC_FILE_RANGE_WAIT_BEFORE|
2314 SYNC_FILE_RANGE_WRITE| 2314 SYNC_FILE_RANGE_WRITE|
2315 SYNC_FILE_RANGE_WAIT_AFTER); 2315 SYNC_FILE_RANGE_WAIT_AFTER);
2316 if (err == 0) { 2316 if (err == 0) {
2317 written = written_buffered; 2317 written = written_buffered;
2318 invalidate_mapping_pages(mapping, 2318 invalidate_mapping_pages(mapping,