]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm io: bump num_bvecs to handle offset memory
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 2 Jul 2024 09:56:45 +0000 (11:56 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Tue, 2 Jul 2024 09:58:08 +0000 (11:58 +0200)
commit06a0b333e58407970e9b109d054610d2f107ca87
tree093a4a9e2dfa8078ee35ea620f23163acc592e60
parentaaa53168cbcc486ca1927faac00bd99e81d4ff04
dm io: bump num_bvecs to handle offset memory

If dp->get_page() returns a non-zero offset, the bio might need an
additional bvec to deal with the offset. For example, if remaining is
exactly one page size, but there is an offset, the memory will span
two pages.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-io.c