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

block: update comment of "struct bio_vec" regarding nth_page()

Ever since commit 858c708d9efb ("block: move the bi_size update out of
__bio_try_merge_page"), page_is_mergeable() no longer exists, and the
logic in bvec_try_merge_page() is now a simple page pointer comparison.

Link: https://lkml.kernel.org/r/20250901150359.867252-37-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

David Hildenbrand and committed by
Andrew Morton
d5170ce4 56531761

+2 -5
+2 -5
include/linux/bvec.h
··· 22 22 * @bv_len: Number of bytes in the address range. 23 23 * @bv_offset: Start of the address range relative to the start of @bv_page. 24 24 * 25 - * The following holds for a bvec if n * PAGE_SIZE < bv_offset + bv_len: 26 - * 27 - * nth_page(@bv_page, n) == @bv_page + n 28 - * 29 - * This holds because page_is_mergeable() checks the above property. 25 + * All pages within a bio_vec starting from @bv_page are contiguous and 26 + * can simply be iterated (see bvec_advance()). 30 27 */ 31 28 struct bio_vec { 32 29 struct page *bv_page;