X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=d79fc61081278c934fd1c4aecbfe344666c75811;hp=faeefaf308fa3e32107375fed6ac68faf65fe594;hb=3deb310183aa83bd74d6d98fbe8974af94451b85;hpb=660a1cb5fb9843ec09a04337714e78d63cd557e7 diff --git a/filesetup.c b/filesetup.c index faeefaf3..d79fc610 100644 --- a/filesetup.c +++ b/filesetup.c @@ -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);