projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure we handle multiple arguments to sync_file_range
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 0e8953404f7e4339572f44aad104f58b2c1a052e..de9349719c21e98d8b1a6dd57c7633dc46ed127b 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-439,8
+439,8
@@
int do_sync_file_range(struct thread_data *td, struct fio_file *f)
offset = f->first_write;
nbytes = f->last_write - f->first_write;
- if (nbytes)
- return
sync_file_range(f->fd, offset, nbytes, 0)
;
+ if (
!
nbytes)
+ return
0
;
- return
0
;
+ return
sync_file_range(f->fd, offset, nbytes, td->o.sync_file_range)
;
}