ANDROID: dm verity: add minimum prefetch size
authorKeun-young Park <keunyoung@google.com>
Tue, 15 Nov 2016 02:25:15 +0000 (18:25 -0800)
committerKeun-young Park <keunyoung@google.com>
Wed, 7 Dec 2016 22:22:22 +0000 (14:22 -0800)
commitace74ccf82cfb2b73ce1df2e698d20c2fbc559dd
tree527207a0dac7ac72f19182686922eec81a865699
parent25dcb75878cd3b685a70c688758a4d3726e92703
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