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