From: Jens Axboe Date: Tue, 17 Apr 2007 07:05:10 +0000 (+0200) Subject: No need to check for type before doing fsync() X-Git-Tag: fio-1.16~17 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d424d4dd657eaf4aeb8ffb07a550a5f64940f41a No need to check for type before doing fsync() Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index 85141dc3..f0c42e89 100644 --- a/filesetup.c +++ b/filesetup.c @@ -554,8 +554,7 @@ void put_file(struct thread_data *td, struct fio_file *f) if (--f->references) return; - if (should_fsync(td) && td->o.fsync_on_close && - (f->filetype == FIO_TYPE_FILE || f->filetype == FIO_TYPE_BD)) + if (should_fsync(td) && td->o.fsync_on_close) fsync(f->fd); if (td->io_ops->close_file)