aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bitmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index e61e0efe9ec7..5a4a74c1097c 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -1456,10 +1456,10 @@ int bitmap_create(mddev_t *mddev)
1456 bitmap->offset = mddev->bitmap_offset; 1456 bitmap->offset = mddev->bitmap_offset;
1457 if (file) { 1457 if (file) {
1458 get_file(file); 1458 get_file(file);
1459 do_sync_file_range(file, 0, LLONG_MAX, 1459 do_sync_mapping_range(file->f_mapping, 0, LLONG_MAX,
1460 SYNC_FILE_RANGE_WAIT_BEFORE | 1460 SYNC_FILE_RANGE_WAIT_BEFORE |
1461 SYNC_FILE_RANGE_WRITE | 1461 SYNC_FILE_RANGE_WRITE |
1462 SYNC_FILE_RANGE_WAIT_AFTER); 1462 SYNC_FILE_RANGE_WAIT_AFTER);
1463 } 1463 }
1464 /* read superblock from bitmap file (this sets bitmap->chunksize) */ 1464 /* read superblock from bitmap file (this sets bitmap->chunksize) */
1465 err = bitmap_read_sb(bitmap); 1465 err = bitmap_read_sb(bitmap);