X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=file.h;h=8fd34b136c23972ba79ff06e4bad096d2e12eb6e;hb=85e99d6e24dc92eb2b69fd568bafdd5da6e1d872;hp=90fb00a35930f6793153d6cd18ca7698a59b4779;hpb=c139f3b446083d12d981f426cdbb105947b30b5c;p=fio.git diff --git a/file.h b/file.h index 90fb00a3..8fd34b13 100644 --- a/file.h +++ b/file.h @@ -125,7 +125,7 @@ struct fio_file { * if io is protected by a semaphore, this is set */ union { - struct fio_mutex *lock; + struct fio_sem *lock; struct fio_rwlock *rwlock; }; @@ -209,7 +209,7 @@ extern void lock_file(struct thread_data *, struct fio_file *, enum fio_ddir); extern void unlock_file(struct thread_data *, struct fio_file *); extern void unlock_file_all(struct thread_data *, struct fio_file *); extern int add_dir_files(struct thread_data *, const char *); -extern int init_random_map(struct thread_data *); +extern bool init_random_map(struct thread_data *); 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 *);