aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-05-08 03:27:10 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:04 -0400
commitef51c97623b94f51e439ac91d2736aab3d1b6594 (patch)
tree5c020421f1e5a6e28b5a9f341fec32479a8ffb3a /drivers/md
parent524e6752912a891a396a9cf74c5d7d60fff5510a (diff)
Remove do_sync_file_range()
Remove do_sync_file_range() and convert callers to just use do_sync_mapping_range(). Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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);