ANDROID: dm: verity: add minimum prefetch size
authorKeun-young Park <keunyoung@google.com>
Tue, 15 Nov 2016 02:25:15 +0000 (18:25 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commitb7a823da74712b8d34480609de9d3eb3b3bbb467
treef28d30fc909f6ae67147cc92a6815d28fbafbd28
parentc35065fc747b536884e900185547c15543efc0a3
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