master - [device/bcache] more work on bcache
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=dc8034f5eb8d14b621c3d99ff58c95f74153c448 Commit: dc8034f5eb8d14b621c3d99ff58c95f74153c448 Parent: 1cde30eba0fc4404f092fb5106f7cc7fcd66795b Author: Joe Thornber <[email protected]> AuthorDate: Tue Feb 6 15:10:44 2018 +0000 Committer: David Teigland <[email protected]> CommitterDate: Fri Apr 20 11:12:50 2018 -0500
[device/bcache] more work on bcache
--- lib/device/bcache.c | 2 +- test/unit/bcache_t.c | 152 +++++++++++++++++++++++++++++++++---------------- 2 files changed, 103 insertions(+), 51 deletions(-)
lib/device/bcache.c +1 -1
@@ -365,7 +365,7 @@ static struct block *_hash_lookup(struct bcache *cache, int fd, uint64_t index)unsigned h =_hash (cache, fd, index); dm_list_iterate_items_gen (b, cache->buckets + h, hash) -if (b->index == index) +if (b->fd == fd && b->index == index)return b;return NULL ;
test/unit/bcache_t.c +102 -50
352 lines not on this page · raw message