Log error on io buffer allocation
[fio.git] / filesetup.c
index faeefaf308fa3e32107375fed6ac68faf65fe594..d79fc61081278c934fd1c4aecbfe344666c75811 100644 (file)
@@ -474,8 +474,7 @@ void close_files(struct thread_data *td)
        unsigned int i;
 
        for_each_file(td, f, i) {
-               if ((f->flags & FIO_FILE_UNLINK) &&
-                   f->filetype == FIO_TYPE_FILE)
+               if (td->o.unlink && f->filetype == FIO_TYPE_FILE)
                        unlink(f->file_name);
 
                td_io_close_file(td, f);