mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 08:45:49 +00:00
dump: Call fsync only if needed
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
@@ -147,12 +147,6 @@ int prep_cr_fdset_for_dump(struct cr_fdset *cr_fdset,
|
||||
|
||||
magic = cr_fdset->desc[i].tmpl->magic;
|
||||
write_ptr_safe(cr_fdset->desc[i].fd, &magic, err);
|
||||
|
||||
/*
|
||||
* Make sure it's on disk since we might
|
||||
* need to re-open files in parasite.
|
||||
*/
|
||||
fsync(cr_fdset->desc[i].fd);
|
||||
}
|
||||
ret = 0;
|
||||
err:
|
||||
|
Reference in New Issue
Block a user