summaryrefslogtreecommitdiff
path: root/filehash.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-03-03 12:34:35 +0100
committerJens Axboe <jens.axboe@oracle.com>2008-03-03 12:34:35 +0100
commit5f1348c709d91ffa54bde1a6a1beb53ecda613b7 (patch)
tree6d3c83f0a736e094d8e9ad85c2449a5eb88337f0 /filehash.c
parente1dab66814403f2c11797c95144b0e6bfe010e02 (diff)
downloadfio-5f1348c709d91ffa54bde1a6a1beb53ecda613b7.tar.gz
fio-5f1348c709d91ffa54bde1a6a1beb53ecda613b7.tar.bz2
filehash.c: remove debug hash dump
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'filehash.c')
-rw-r--r--filehash.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/filehash.c b/filehash.c
index 1bcfc6de..b459220b 100644
--- a/filehash.c
+++ b/filehash.c
@@ -13,21 +13,6 @@ unsigned int file_hash_size = HASH_BUCKETS * sizeof(struct list_head);
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;
@@ -60,7 +45,6 @@ static struct fio_file *__lookup_file_hash(const char *name)
}
}
- dump_hash();
return NULL;
}