file: add bloom filter to avoid quadratic lookup behavior
[fio.git] / filehash.h
1 #ifndef FIO_FILE_HASH_H
2 #define FIO_FILE_HASH_H
3
4 #include "lib/types.h"
5
6 extern unsigned int file_hash_size;
7
8 extern void file_hash_init(void *);
9 extern void file_hash_exit(void);
10 extern struct fio_file *lookup_file_hash(const char *);
11 extern struct fio_file *add_file_hash(struct fio_file *);
12 extern void remove_file_hash(struct fio_file *);
13 extern void fio_file_hash_lock(void);
14 extern void fio_file_hash_unlock(void);
15 extern bool file_bloom_exists(const char *, bool);
16
17 #endif