X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=file.h;h=38e9d0d43003c466ae13defebea219db8057b7c1;hp=68f9a6eead88014e129c90f6e93abf191d22020f;hb=b2b0b7534d857e4ca22429a9f573791b8e03264c;hpb=ce95d651568bd5494e4c4ddc95832715c6760d56 diff --git a/file.h b/file.h index 68f9a6ee..38e9d0d4 100644 --- a/file.h +++ b/file.h @@ -5,6 +5,7 @@ #include "compiler/compiler.h" #include "io_ddir.h" #include "flist.h" +#include "lib/zipf.h" /* * The type of object we are working on @@ -112,6 +113,11 @@ struct fio_file { unsigned long last_free_lookup; unsigned failed_rands; + /* + * Used for zipf random distribution + */ + struct zipf_state zipf; + int references; enum fio_file_flags flags; @@ -153,6 +159,7 @@ extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_f extern int __must_check generic_open_file(struct thread_data *, struct fio_file *); extern int __must_check generic_close_file(struct thread_data *, struct fio_file *); extern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *); +extern int __must_check file_lookup_open(struct fio_file *f, int flags); extern int __must_check pre_read_files(struct thread_data *); extern int add_file(struct thread_data *, const char *); extern int add_file_exclusive(struct thread_data *, const char *);