aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sync.c')
-rw-r--r--fs/sync.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/sync.c b/fs/sync.c
index b75ca68dc081..36752a683481 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -453,9 +453,7 @@ int do_sync_mapping_range(struct address_space *mapping, loff_t offset,
453 453
454 ret = 0; 454 ret = 0;
455 if (flags & SYNC_FILE_RANGE_WAIT_BEFORE) { 455 if (flags & SYNC_FILE_RANGE_WAIT_BEFORE) {
456 ret = wait_on_page_writeback_range(mapping, 456 ret = filemap_fdatawait_range(mapping, offset, endbyte);
457 offset >> PAGE_CACHE_SHIFT,
458 endbyte >> PAGE_CACHE_SHIFT);
459 if (ret < 0) 457 if (ret < 0)
460 goto out; 458 goto out;
461 } 459 }
@@ -468,9 +466,7 @@ int do_sync_mapping_range(struct address_space *mapping, loff_t offset,
468 } 466 }
469 467
470 if (flags & SYNC_FILE_RANGE_WAIT_AFTER) { 468 if (flags & SYNC_FILE_RANGE_WAIT_AFTER) {
471 ret = wait_on_page_writeback_range(mapping, 469 ret = filemap_fdatawait_range(mapping, offset, endbyte);
472 offset >> PAGE_CACHE_SHIFT,
473 endbyte >> PAGE_CACHE_SHIFT);
474 } 470 }
475out: 471out:
476 return ret; 472 return ret;