Remove dead FIO_FILE_EXISTS flag
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c
index 76b45a9..785afce 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -33,7 +33,7 @@
if (td_write(td) && !td->o.overwrite)
unlink_file = 1;
- if ((unlink_file || new_layout) && (f->flags & FIO_FILE_EXISTS)) {
+ if (unlink_file || new_layout) {
if (unlink(f->file_name) < 0) {
td_verror(td, errno, "unlink");
return 1;
diff --git a/fio.h b/fio.h
index 86020d9..028ef4c 100644
--- a/fio.h
+++ b/fio.h
@@ -269,10 +269,9 @@
enum fio_file_flags {
FIO_FILE_OPEN = 1 << 0, /* file is open */
FIO_FILE_CLOSING = 1 << 1, /* file being closed */
- FIO_FILE_EXISTS = 1 << 2, /* file there */
- FIO_FILE_EXTEND = 1 << 3, /* needs extend */
- FIO_FILE_DONE = 1 << 4, /* io completed to this file */
- FIO_SIZE_KNOWN = 1 << 5, /* size has been set */
+ FIO_FILE_EXTEND = 1 << 2, /* needs extend */
+ FIO_FILE_DONE = 1 << 3, /* io completed to this file */
+ FIO_SIZE_KNOWN = 1 << 4, /* size has been set */
};
/*