]> sourceware.org Git - lvm2.git/commitdiff
[bcache] Remove unused 'hash' field from blocks.
authorJoe Thornber <ejt@redhat.com>
Tue, 11 Sep 2018 12:17:29 +0000 (13:17 +0100)
committerJoe Thornber <ejt@redhat.com>
Tue, 11 Sep 2018 12:17:29 +0000 (13:17 +0100)
We use a radix tree these days rather than a hash table.

lib/device/bcache.c
lib/device/bcache.h

index e759997c22c595e0fb9b810714fb0ecbab31c663..5e795c56b01108517b3b017e04fc9f53fe25a4d0 100644 (file)
@@ -757,7 +757,6 @@ static struct block *_new_block(struct bcache *cache, int fd, block_address i, b
 
        if (b) {
                dm_list_init(&b->list);
-               dm_list_init(&b->hash);
                b->flags = 0;
                b->fd = fd;
                b->index = i;
index ae5e69c8b7a4bf6d31880dfc39d3220cd23caf33..1d49af20bd01381095787ae60275a9d026efe4f6 100644 (file)
@@ -62,7 +62,6 @@ struct block {
 
        struct bcache *cache;
        struct dm_list list;
-       struct dm_list hash;
 
        unsigned flags;
        unsigned ref_count;
This page took 0.037124 seconds and 5 git commands to generate.