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, 2 Jan 2017 08:24:08 +0000 (13:54 +0530)
commit26a380b3ce97e6c3919f7ea576b91b23f7e9728c
tree3b68564656d83f9f96512412b4a4f408d52fa1b1
parent35194db1b78973c1b3251f5c7bea2c1bafec6a08
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

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