X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=file.h;h=c1d02a5bea57add8d9049aad117fb91592740459;hb=dc632d12d74bab6a439aaf8c317d250d3a8def5c;hp=d7e05f4fb22e0aaf97b5cb0c7453f1ce4cdc1051;hpb=d7213923067aa49922962a469a691c3ec951064d;p=fio.git diff --git a/file.h b/file.h index d7e05f4f..c1d02a5b 100644 --- a/file.h +++ b/file.h @@ -128,11 +128,11 @@ struct fio_file { #define FILE_FLAG_FNS(name) \ static inline void fio_file_set_##name(struct fio_file *f) \ { \ - (f)->flags |= FIO_FILE_##name; \ + (f)->flags = (enum fio_file_flags) ((f)->flags | FIO_FILE_##name); \ } \ static inline void fio_file_clear_##name(struct fio_file *f) \ { \ - (f)->flags &= ~FIO_FILE_##name; \ + (f)->flags = (enum fio_file_flags) ((f)->flags & ~FIO_FILE_##name); \ } \ static inline int fio_file_##name(struct fio_file *f) \ { \ @@ -176,5 +176,6 @@ extern void dup_files(struct thread_data *, struct thread_data *); extern int get_fileno(struct thread_data *, const char *); extern void free_release_files(struct thread_data *); void fio_file_reset(struct thread_data *, struct fio_file *); +int fio_files_done(struct thread_data *); #endif