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

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

Issue 6757012: CHROMIUM: verity: remove entry_readahead (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 71e3b04b2acf3161495a8ce8b16d2901cbc71202..162373946ac3ac4b9ef84f110589e60f52b0529f 100644
--- a/drivers/md/dm-bht.c
+++ b/drivers/md/dm-bht.c
@@ -313,7 +313,6 @@ int dm_bht_create(struct dm_bht *bht, unsigned int depth,
if (status)
goto bad_entries_alloc;
- bht->entry_readahead = 0;
return 0;
bad_entries_alloc:
@@ -975,26 +974,6 @@ int dm_bht_populate(struct dm_bht *bht, void *read_cb_ctx,
}
/* Accrue return code flags */
populated |= read_status;
-
- /* Attempt to pull in up to entry_readahead extra entries on
- * this I/O call iff we're doing the read right now. This
- * helps optimize sequential access to the mapped drive.
- */
- if (bht->entry_readahead &&
- (read_status & DM_BHT_ENTRY_REQUESTED)) {
- unsigned int readahead_count;
- entry_index++;
- readahead_count = min(bht->entry_readahead,
- level->count - entry_index);
- /* The result is completely ignored since this call is
- * critical for the current request.
- */
- if (readahead_count)
- dm_bht_maybe_read_entries(bht, read_cb_ctx,
- depth, entry_index,
- readahead_count,
- true);
- }
}
/* All nodes are ready. The hash for the block_index can be verified */
@@ -1124,18 +1103,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_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
- */
-void dm_bht_set_entry_readahead(struct dm_bht *bht,
- unsigned int readahead_count)
-{
- bht->entry_readahead = readahead_count;
-}
-EXPORT_SYMBOL(dm_bht_set_entry_readahead);
-
-/**
* dm_bht_set_root_hexdigest - sets an unverified root digest hash from hex
* @bht: pointer to a dm_bht_create()d bht
* @hexdigest: array of u8s containing the new digest in binary
@@ -1189,4 +1156,3 @@ int dm_bht_root_hexdigest(struct dm_bht *bht, u8 *hexdigest, int available)
return 0;
}
EXPORT_SYMBOL(dm_bht_root_hexdigest);
-
« 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