diff options
author | 2025-01-20 16:29:48 +0800 | |
---|---|---|
committer | 2025-01-21 22:00:57 +0100 | |
commit | 2f8c28d0d97313edc36d62cbd505019f36111fd5 (patch) | |
tree | 3c358ed4222236fde0fdd009f9950a9400dbad90 /scripts/lib/kdoc/kdoc_files.py | |
parent | dm-crypt: fully initialize clone->bi_iter in crypt_alloc_buffer() (diff) | |
download | linux-rng-2f8c28d0d97313edc36d62cbd505019f36111fd5.tar.xz linux-rng-2f8c28d0d97313edc36d62cbd505019f36111fd5.zip |
dm-crypt: use bi_sector in bio when initialize integrity seed
bio->bi_iter.bi_sector has already been initialized when initialize the
integrity seed in dm_crypt_integrity_io_alloc(). There is no need to
calculate it again. Therefore, use the helper bip_set_seed() to
initialize the seed and pass bi_iter.bi_sector to it instead.
Mikulas: We can't use bip_set_seed because it doesn't compile without
CONFIG_BLK_DEV_INTEGRITY.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions