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

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

Issue 6250155: CHROMIUM: verity: remove stale code/comments from earlier bitmap design (Closed) Base URL: http://git.chromium.org/git/kernel.git@master
Patch Set: Created 9 years, 11 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 bc662cbd188500158fc6e1691c38f3110c285101..7ef087186ac4f578b9093d8598609f16d710ac8f 100644
--- a/drivers/md/dm-bht.c
+++ b/drivers/md/dm-bht.c
@@ -288,15 +288,6 @@ int dm_bht_create(struct dm_bht *bht, unsigned int depth,
*/
bht->node_count = 1 << bht->node_count_shift;
- /* TODO(wad) if node_count < DM_BHT_MAX_NODE_COUNT, then retry with
- * node_count_shift-1.
- */
- if (bht->node_count > DM_BHT_MAX_NODE_COUNT) {
- DMERR("node_count maximum node bitmap size");
- status = -EINVAL;
- goto bad_node_count;
- }
-
/* This is unlikely to happen, but with 64k pages, who knows. */
if (bht->node_count > UINT_MAX / bht->digest_size) {
DMERR("node_count * hash_len exceeds UINT_MAX!");
@@ -634,7 +625,6 @@ static int dm_bht_check_block(struct dm_bht *bht, unsigned int block_index,
dm_bht_log_mismatch(bht, &entry->nodes[index], digest);
return DM_BHT_ENTRY_ERROR_MISMATCH;
}
- /* TODO(wad) update bht->block_bitmap here or in the caller */
return 0;
}
« 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