Index: dm-bht.c |
diff --git a/dm-bht.c b/dm-bht.c |
index 5a6cc3ba845db8003c23ba0e886373e67e6e87ac..46b03c09702bd31ad8319228c24112164c31cac7 100644 |
--- a/dm-bht.c |
+++ b/dm-bht.c |
@@ -307,7 +307,6 @@ int dm_bht_create(struct dm_bht *bht, unsigned int depth, |
if (status) |
goto bad_entries_alloc; |
- bht->verify_mode = DM_BHT_REVERIFY_LEAVES; |
bht->entry_readahead = 0; |
return 0; |
@@ -727,10 +726,9 @@ static int dm_bht_verify_path(struct dm_bht *bht, unsigned int block_index) |
goto mismatch; |
} |
- if (bht->verify_mode != DM_BHT_FULL_REVERIFY) |
- atomic_cmpxchg(&entry->state, |
- DM_BHT_ENTRY_READY, |
- DM_BHT_ENTRY_VERIFIED); |
+ atomic_cmpxchg(&entry->state, |
+ DM_BHT_ENTRY_READY, |
+ DM_BHT_ENTRY_VERIFIED); |
entry = parent; |
depth--; |
@@ -1169,17 +1167,6 @@ void dm_bht_set_write_cb(struct dm_bht *bht, dm_bht_callback write_cb) |
EXPORT_SYMBOL(dm_bht_set_write_cb); |
/** |
- * dm_bht_set_verify_mode - set verify mode |
- * @bht: pointer to a dm_bht_create()d bht |
- * @verify_mode: indicate verification behavior |
- */ |
-void dm_bht_set_verify_mode(struct dm_bht *bht, int verify_mode) |
-{ |
- bht->verify_mode = verify_mode; |
-} |
-EXPORT_SYMBOL(dm_bht_set_verify_mode); |
- |
-/** |
* dm_bht_set_entry_readahead - set verify mode |
* @bht: pointer to a dm_bht_create()d bht |
* @readahead_count: number of entries to readahead from a given level |