OSDN Git Service

ANDROID: dm verity: add minimum prefetch size
authorKeun-young Park <keunyoung@google.com>
Tue, 15 Nov 2016 02:25:15 +0000 (18:25 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 27 Jan 2017 21:55:49 +0000 (13:55 -0800)
commiteb4228c7a5edcbfe1dc50c49323af6e6861ffaf7
tree32e8c981266fa326a639c38c0190173a949bf7e9
parenta716dc568561874b56c90b0a9ee8928b183319d6
ANDROID: dm verity: add minimum prefetch size

- For device like eMMC, it gives better performance to read more hash
  blocks at a time.
- For android, set it to default 128.
  For other devices, set it to 1 which is the same as now.
- saved boot-up time by 300ms in tested device

bug: 32246564

Change-Id: Ibc0401a0cddba64b862a80445844b4e595213621
Cc: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Keun-young Park <keunyoung@google.com>
drivers/md/Kconfig
drivers/md/dm-verity-target.c