Skip to contentSkip to conversation

block-update-comment-of-struct-bio_vec-regarding-nth_page.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Sep 21, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: block: update comment of "struct bio_vec" regarding nth_page()
has been removed from the -mm tree. Its filename was
block-update-comment-of-struct-bio_vec-regarding-nth_page.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: block: update comment of "struct bio_vec" regarding nth_page()
Date: Mon, 1 Sep 2025 17:03:57 +0200

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.

---

 include/linux/bvec.h |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
include/linux/bvec.h renamed from include/linux/bvec.h~block-update-comment-of-struct-bio_vec-regarding-nth_page +2 -5
@@ -22,11 +22,8 @@ struct page;
  * @bv_len:    Number of bytes in the address range.
  * @bv_offset: Start of the address range relative to the start of @bv_page.
  *
- * The following holds for a bvec if n * PAGE_SIZE < bv_offset + bv_len:
- *
- *   nth_page(@bv_page, n) == @bv_page + n
- *
- * This holds because page_is_mergeable() checks the above property.
+ * All pages within a bio_vec starting from @bv_page are contiguous and
+ * can simply be iterated (see bvec_advance()).
  */
 struct bio_vec {
 	struct page	*bv_page;

_

Patches currently in -mm which might be from [email protected] are