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

Issue 6626037: CHROMIUM: verity: do all hashing in dm-bht.c (Closed)

Created:
9 years, 9 months ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
Reviewers:
Paul T, ups, Will Drewry
CC:
chromium-os-reviews_chromium.org, vb+kernel_google.com, Olof Johansson, msb+croskernel_chromium.org
Visibility:
Public.

Description

CHROMIUM: verity: do all hashing in dm-bht.c We were doing the hashing of the disk blocks in dm-verity.c and hashing hash blocks in dm-bht.c. We can simplifiy the code by doing all the hashing in dm-bht.c. We couldn't do this earlier because we had to handle unaligned reads (no longer an issue). I also removed the BUG_ON in dm_bht_get_node because I wanted to use it in dm_bht_check_block with depth == bht->depth. BUG=9752 TEST=Ran dm-verity.git unit tests. Ran platform_DMVerityCorruption on H/W. Note: Had to modify the tests to use the new interface. Signed-off-by: Mandeep Singh Baines <msb@chromium.org>; Change-Id: I246a39b83a727743b49fcb420e57629d69af5dfd Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=ddd06a2

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix per review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -107 lines) Patch
M drivers/md/dm-bht.c View 1 4 chunks +19 lines, -35 lines 0 comments Download
M drivers/md/dm-verity.c View 12 chunks +2 lines, -71 lines 0 comments Download
M include/linux/dm-bht.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Mandeep Singh Baines
9 years, 9 months ago (2011-03-05 00:19:53 UTC) #1
Paul T
LGTM
9 years, 9 months ago (2011-03-08 20:44:14 UTC) #2
Will Drewry
9 years, 9 months ago (2011-03-08 20:53:59 UTC) #3
Pending updating the comments on the changed function to reflect the new
arguments, LGTM.  (Other comment is just a non-blocking naming nit. :)

http://codereview.chromium.org/6626037/diff/1/drivers/md/dm-bht.c
File drivers/md/dm-bht.c (right):

http://codereview.chromium.org/6626037/diff/1/drivers/md/dm-bht.c#newcode590
drivers/md/dm-bht.c:590: const void *buf, int *entry_state)
nit: might prefer something more meaningful like "block" instead of just "buf".

http://codereview.chromium.org/6626037/diff/1/drivers/md/dm-bht.c#newcode1063
drivers/md/dm-bht.c:1063: const void *buf)
Please update the comments.

Powered by Google App Engine
This is Rietveld 408576698