#include "fio.h"
#include "flist.h"
#include "hash.h"
+#include "filehash.h"
#define HASH_BUCKETS 512
#define HASH_MASK (HASH_BUCKETS - 1)
void fio_file_hash_lock(void)
{
- fio_mutex_down(hash_lock);
+ if (hash_lock)
+ fio_mutex_down(hash_lock);
}
void fio_file_hash_unlock(void)
{
- fio_mutex_up(hash_lock);
+ if (hash_lock)
+ fio_mutex_up(hash_lock);
}
void remove_file_hash(struct fio_file *f)