Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3098)

Unified Diff: drivers/md/dm-bht.c

Issue 6659037: CHROMIUM: verity: remove verify_mode (Closed) Base URL: http://git.chromium.org/git/kernel.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/linux/dm-bht.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drivers/md/dm-bht.c
diff --git a/drivers/md/dm-bht.c b/drivers/md/dm-bht.c
index 5a6cc3ba845db8003c23ba0e886373e67e6e87ac..46b03c09702bd31ad8319228c24112164c31cac7 100644
--- a/drivers/md/dm-bht.c
+++ b/drivers/md/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
« no previous file with comments | « no previous file | include/linux/dm-bht.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698