When rewriting the transaction and journal headers, instead of running fdatasync() on the whole file use sync_file_range() if available.
When rewriting the transaction and journal headers, instead of running fdatasync() on the whole file use sync_file_range() if available.