X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=93cddb1f467b3aea77cfc3b858c1164e89da8964;hp=d79fc61081278c934fd1c4aecbfe344666c75811;hb=97af62cec418cd722fb43c6010d6430534e12353;hpb=16d55aae770b8b1a966d4b4a814918ce49a76ba3 diff --git a/filesetup.c b/filesetup.c index d79fc610..93cddb1f 100644 --- a/filesetup.c +++ b/filesetup.c @@ -547,6 +547,7 @@ void add_file(struct thread_data *td, const char *fname) void get_file(struct fio_file *f) { + assert(f->flags & FIO_FILE_OPEN); f->references++; }