Skip to contentSkip to conversation

mspro_block-drop-nth_page-usage-within-sg-entry.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: mspro_block: drop nth_page() usage within SG entry
has been removed from the -mm tree. Its filename was
mspro_block-drop-nth_page-usage-within-sg-entry.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: mspro_block: drop nth_page() usage within SG entry
Date: Mon, 1 Sep 2025 17:03:48 +0200

It's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.

---

 drivers/memstick/core/mspro_block.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/memstick/core/mspro_block.c renamed from drivers/memstick/core/mspro_block.c~mspro_block-drop-nth_page-usage-within-sg-entry +1 -2
@@ -560,8 +560,7 @@ has_int_reg:
 		t_offset += msb->current_page * msb->page_size;
 
 		sg_set_page(&t_sg,
-			    nth_page(sg_page(&(msb->req_sg[msb->current_seg])),
-				     t_offset >> PAGE_SHIFT),
+			    sg_page(&(msb->req_sg[msb->current_seg])) + (t_offset >> PAGE_SHIFT),
 			    msb->page_size, offset_in_page(t_offset));
 
 		memstick_init_req_sg(*mrq, msb->data_dir == READ

_

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