filehash.c: remove debug hash dump
authorJens Axboe <jens.axboe@oracle.com>
Mon, 3 Mar 2008 11:34:35 +0000 (12:34 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 3 Mar 2008 11:34:35 +0000 (12:34 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filehash.c

index 1bcfc6de072a34d295e34fae04d6a2fd3eb3d6e8..b459220b6766317a31e35cba31e546e69768ff6e 100644 (file)
@@ -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;
 }