Skip to contentSkip to conversation

scsi-sg-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: scsi: sg: drop nth_page() usage within SG entry
has been removed from the -mm tree. Its filename was
scsi-sg-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: scsi: sg: drop nth_page() usage within SG entry
Date: Mon, 1 Sep 2025 17:03:52 +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/scsi/sg.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/sg.c renamed from drivers/scsi/sg.c~scsi-sg-drop-nth_page-usage-within-sg-entry +1 -2
@@ -1235,8 +1235,7 @@ sg_vma_fault(struct vm_fault *vmf)
 		len = vma->vm_end - sa;
 		len = (len < length) ? len : length;
 		if (offset < len) {
-			struct page *page = nth_page(rsv_schp->pages[k],
-						     offset >> PAGE_SHIFT);
+			struct page *page = rsv_schp->pages[k] + (offset >> PAGE_SHIFT);
 			get_page(page);	/* increment page count */
 			vmf->page = page;
 			return 0; /* success */

_

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