projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ability to use an include file in a fio job file
[fio.git]
/
filehash.c
diff --git
a/filehash.c
b/filehash.c
index 2d9659c5039a0e46cb79db758dcd694bc9d9971c..0d61f54cca0b2f8c526cd639f9749716069aa8ff 100644
(file)
--- a/
filehash.c
+++ b/
filehash.c
@@
-4,6
+4,7
@@
#include "fio.h"
#include "flist.h"
#include "hash.h"
#include "fio.h"
#include "flist.h"
#include "hash.h"
+#include "filehash.h"
#define HASH_BUCKETS 512
#define HASH_MASK (HASH_BUCKETS - 1)
#define HASH_BUCKETS 512
#define HASH_MASK (HASH_BUCKETS - 1)
@@
-20,12
+21,14
@@
static unsigned short hash(const char *name)
void fio_file_hash_lock(void)
{
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)
{
}
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)
}
void remove_file_hash(struct fio_file *f)