From d424d4dd657eaf4aeb8ffb07a550a5f64940f41a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 17 Apr 2007 09:05:10 +0200 Subject: [PATCH] No need to check for type before doing fsync() Signed-off-by: Jens Axboe --- filesetup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.25.1