diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-05-08 00:27:10 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 11:15:04 -0700 |
commit | ef51c97623b94f51e439ac91d2736aab3d1b6594 (patch) | |
tree | 5c020421f1e5a6e28b5a9f341fec32479a8ffb3a /drivers/md | |
parent | 524e6752912a891a396a9cf74c5d7d60fff5510a (diff) | |
download | kernel_samsung_crespo-ef51c97623b94f51e439ac91d2736aab3d1b6594.zip kernel_samsung_crespo-ef51c97623b94f51e439ac91d2736aab3d1b6594.tar.gz kernel_samsung_crespo-ef51c97623b94f51e439ac91d2736aab3d1b6594.tar.bz2 |
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index e61e0ef..5a4a74c 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c @@ -1456,10 +1456,10 @@ int bitmap_create(mddev_t *mddev) bitmap->offset = mddev->bitmap_offset; if (file) { get_file(file); - do_sync_file_range(file, 0, LLONG_MAX, - SYNC_FILE_RANGE_WAIT_BEFORE | - SYNC_FILE_RANGE_WRITE | - SYNC_FILE_RANGE_WAIT_AFTER); + do_sync_mapping_range(file->f_mapping, 0, LLONG_MAX, + SYNC_FILE_RANGE_WAIT_BEFORE | + SYNC_FILE_RANGE_WRITE | + SYNC_FILE_RANGE_WAIT_AFTER); } /* read superblock from bitmap file (this sets bitmap->chunksize) */ err = bitmap_read_sb(bitmap); |