diff options
author | Eric Biggers <[email protected]> | 2024-07-02 16:40:20 +0200 |
---|---|---|
committer | Mikulas Patocka <[email protected]> | 2024-07-03 21:41:11 +0200 |
commit | cf715f4b7eb521a5bf67d391387b754c2fcde8d2 (patch) | |
tree | f4120fa330529bd10a023d953b1e9764d55ba145 /lib/memory-notifier-error-inject.c | |
parent | 09d1430896e38933470045408d7a350dac7d841b (diff) |
dm-verity: always "map" the data blocks
dm-verity needs to access data blocks by virtual address in three
different cases (zeroization, recheck, and forward error correction),
and one more case (shash support) is coming. Since it's guaranteed that
dm-verity data blocks never cross pages, and kmap_local_page and
kunmap_local are no-ops on modern platforms anyway, just unconditionally
"map" every data block's page and work with the virtual buffer directly.
This simplifies the code and eliminates unnecessary overhead.
Reviewed-by: Sami Tolvanen <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions