diff options
author | Eric Biggers <[email protected]> | 2022-12-23 12:36:29 -0800 |
---|---|---|
committer | Eric Biggers <[email protected]> | 2023-01-09 19:05:54 -0800 |
commit | 9098f36b739db9a77d24b7c302dcb9d3fe987308 (patch) | |
tree | 6eab452a3fd714bfb23088ef2f642468f73b7130 /scripts/gdb/linux/modules.py | |
parent | 284d5db5f99efa9e3549eb3cba39379d48879db1 (diff) |
fsverity: simplify Merkle tree readahead size calculation
First, calculate max_ra_pages more efficiently by using the bio size.
Second, calculate the number of readahead pages from the hash page
index, instead of calculating it ahead of time using the data page
index. This ends up being a bit simpler, especially since level 0 is
last in the tree, so we can just limit the readahead to the tree size.
Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Andrey Albershteyn <[email protected]>
Tested-by: Ojaswin Mujoo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions