Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dm-crypt: use __bio_add_page to add single page to clone bio

crypt_alloc_buffer() already allocates enough entries in the clone bio's
vector, so adding a page to the bio can't fail. Use __bio_add_page() to
reflect this.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/f9a4dee5e81389fd70ffc442da01006538e55aca.1685532726.git.johannes.thumshirn@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Johannes Thumshirn and committed by
Jens Axboe
2c550517 0c67dd64

+1 -2
+1 -2
drivers/md/dm-crypt.c
··· 1693 1693 1694 1694 len = (remaining_size > PAGE_SIZE) ? PAGE_SIZE : remaining_size; 1695 1695 1696 - bio_add_page(clone, page, len, 0); 1697 - 1696 + __bio_add_page(clone, page, len, 0); 1698 1697 remaining_size -= len; 1699 1698 } 1700 1699