Fsync small refactoring.