From: Jens Axboe Date: Thu, 21 Feb 2008 09:20:00 +0000 (+0100) Subject: Remove dead FIO_FILE_EXISTS flag X-Git-Tag: fio-1.20-rc1~38 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6ae1f57f2cb8661b97b770372eeb3694f6d5a744;hp=8ce9cd3dfab6a802272378e02695e87ebe40a973;ds=sidebyside Remove dead FIO_FILE_EXISTS flag Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index 76b45a9c..785afcee 100644 --- a/filesetup.c +++ b/filesetup.c @@ -33,7 +33,7 @@ static int extend_file(struct thread_data *td, struct fio_file *f) 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 86020d96..028ef4cb 100644 --- a/fio.h +++ b/fio.h @@ -269,10 +269,9 @@ enum fio_ioengine_flags { 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 */ }; /*