commit | d424d4dd657eaf4aeb8ffb07a550a5f64940f41a | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Apr 17 09:05:10 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Apr 17 09:05:10 2007 +0200 |
tree | 176d55e2f94a0eb02fc7dc6e3a10ac6f087ae22f | |
parent | 661598287ecc3b8987f312cf8403936552ce686a [diff] |
No need to check for type before doing fsync() Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c index 85141dc..f0c42e8 100644 --- a/filesetup.c +++ b/filesetup.c
@@ -554,8 +554,7 @@ 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)