static struct list_head *file_hash;
static struct fio_mutex *hash_lock;
-static void dump_hash(void)
-{
- struct list_head *n;
- unsigned int i;
-
- for (i = 0; i < HASH_BUCKETS; i++) {
- list_for_each(n, &file_hash[i]) {
- struct fio_file *f;
-
- f = list_entry(n, struct fio_file, hash_list);
- printf("%d: %s\n", i, f->file_name);
- }
- }
-}
-
static unsigned short hash(const char *name)
{
return crc16((const unsigned char *) name, strlen(name)) & HASH_MASK;
}
}
- dump_hash();
return NULL;
}