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

Side by Side Diff: include/linux/dm-bht.h

Issue 6835032: CHROMIUM: verity: don't call page_address on unmapped highmem pages (Closed) Base URL: http://git.chromium.org/git/kernel-next.git@chromeos-2.6.37
Patch Set: Fix. Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « drivers/md/dm-verity.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 The Chromium OS Authors <chromium-os-dev@chromium.org> 2 * Copyright (C) 2010 The Chromium OS Authors <chromium-os-dev@chromium.org>
3 * 3 *
4 * Device-Mapper block hash tree interface. 4 * Device-Mapper block hash tree interface.
5 * See Documentation/device-mapper/dm-bht.txt for details. 5 * See Documentation/device-mapper/dm-bht.txt for details.
6 * 6 *
7 * This file is released under the GPLv2. 7 * This file is released under the GPLv2.
8 */ 8 */
9 #ifndef __LINUX_DM_BHT_H 9 #ifndef __LINUX_DM_BHT_H
10 #define __LINUX_DM_BHT_H 10 #define __LINUX_DM_BHT_H
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void dm_bht_set_read_cb(struct dm_bht *bht, dm_bht_callback read_cb); 120 void dm_bht_set_read_cb(struct dm_bht *bht, dm_bht_callback read_cb);
121 void dm_bht_set_write_cb(struct dm_bht *bht, dm_bht_callback write_cb); 121 void dm_bht_set_write_cb(struct dm_bht *bht, dm_bht_callback write_cb);
122 int dm_bht_set_root_hexdigest(struct dm_bht *bht, const u8 *hexdigest); 122 int dm_bht_set_root_hexdigest(struct dm_bht *bht, const u8 *hexdigest);
123 int dm_bht_root_hexdigest(struct dm_bht *bht, u8 *hexdigest, int available); 123 int dm_bht_root_hexdigest(struct dm_bht *bht, u8 *hexdigest, int available);
124 124
125 /* Functions for loading in data from disk for verification */ 125 /* Functions for loading in data from disk for verification */
126 bool dm_bht_is_populated(struct dm_bht *bht, unsigned int block_index); 126 bool dm_bht_is_populated(struct dm_bht *bht, unsigned int block_index);
127 int dm_bht_populate(struct dm_bht *bht, void *read_cb_ctx, 127 int dm_bht_populate(struct dm_bht *bht, void *read_cb_ctx,
128 unsigned int block_index); 128 unsigned int block_index);
129 int dm_bht_verify_block(struct dm_bht *bht, unsigned int block_index, 129 int dm_bht_verify_block(struct dm_bht *bht, unsigned int block_index,
130 » » » const void *block); 130 » » » struct page *pg, unsigned int offset);
131 131
132 /* Functions for creating struct dm_bhts on disk. A newly created dm_bht 132 /* Functions for creating struct dm_bhts on disk. A newly created dm_bht
133 * should not be directly used for verification. (It should be repopulated.) 133 * should not be directly used for verification. (It should be repopulated.)
134 * In addition, these functions aren't meant to be called in parallel. 134 * In addition, these functions aren't meant to be called in parallel.
135 */ 135 */
136 int dm_bht_compute(struct dm_bht *bht, void *read_cb_ctx); 136 int dm_bht_compute(struct dm_bht *bht, void *read_cb_ctx);
137 int dm_bht_sync(struct dm_bht *bht, void *write_cb_ctx); 137 int dm_bht_sync(struct dm_bht *bht, void *write_cb_ctx);
138 int dm_bht_store_block(struct dm_bht *bht, unsigned int block_index, 138 int dm_bht_store_block(struct dm_bht *bht, unsigned int block_index,
139 u8 *block_data); 139 u8 *block_data);
140 int dm_bht_zeroread_callback(void *ctx, sector_t start, u8 *dst, sector_t count, 140 int dm_bht_zeroread_callback(void *ctx, sector_t start, u8 *dst, sector_t count,
141 struct dm_bht_entry *entry); 141 struct dm_bht_entry *entry);
142 void dm_bht_read_completed(struct dm_bht_entry *entry, int status); 142 void dm_bht_read_completed(struct dm_bht_entry *entry, int status);
143 void dm_bht_write_completed(struct dm_bht_entry *entry, int status); 143 void dm_bht_write_completed(struct dm_bht_entry *entry, int status);
144 #endif /* __LINUX_DM_BHT_H */ 144 #endif /* __LINUX_DM_BHT_H */
OLDNEW
« no previous file with comments | « drivers/md/dm-verity.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698