summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e1dab66)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
static struct list_head *file_hash;
static struct fio_mutex *hash_lock;
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;
static unsigned short hash(const char *name)
{
return crc16((const unsigned char *) name, strlen(name)) & HASH_MASK;