dm-default-key: fix wrong encryption/decryption when f2fs moves blocks
commit 2b425b7413e2 ("dm-default-key, f2fs, ICE: support dm-default-key with f2fs/ICE")
supports bio->bi_crypt_skip, so this patch should address the original issue by
adding this condition.
Change-Id: I215cd9d02e364af07eebf388000809cdf0cce472
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Shivaprasad Hongal <shongal@codeaurora.org>
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
This commit is contained in:
parent
0c00b77593
commit
20bd93bcc4
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ static int default_key_map(struct dm_target *ti, struct bio *bio)
|
|||
dm_target_offset(ti, bio->bi_iter.bi_sector);
|
||||
}
|
||||
|
||||
if (!bio->bi_crypt_key)
|
||||
if (!bio->bi_crypt_key && !bio->bi_crypt_skip)
|
||||
bio->bi_crypt_key = &dkc->key;
|
||||
|
||||
return DM_MAPIO_REMAPPED;
|
||||
|
|
|
|||
Loading…
Reference in a new issue