Skip to contentSkip to conversation

ata-libata-sff-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: ata: libata-sff: drop nth_page() usage within SG entry
has been removed from the -mm tree. Its filename was
ata-libata-sff-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: ata: libata-sff: drop nth_page() usage within SG entry
Date: Mon, 1 Sep 2025 17:03:46 +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/ata/libata-sff.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/ata/libata-sff.c renamed from drivers/ata/libata-sff.c~ata-libata-sff-drop-nth_page-usage-within-sg-entry +3 -3
@@ -614,7 +614,7 @@ static void ata_pio_sector(struct ata_qu
 	offset = qc->cursg->offset + qc->cursg_ofs;
 
 	/* get the current page and offset */
-	page = nth_page(page, (offset >> PAGE_SHIFT));
+	page += offset >> PAGE_SHIFT;
 	offset %= PAGE_SIZE;
 
 	/* don't overrun current sg */
@@ -631,7 +631,7 @@ static void ata_pio_sector(struct ata_qu
 		unsigned int split_len = PAGE_SIZE - offset;
 
 		ata_pio_xfer(qc, page, offset, split_len);
-		ata_pio_xfer(qc, nth_page(page, 1), 0, count - split_len);
+		ata_pio_xfer(qc, page + 1, 0, count - split_len);
 	} else {
 		ata_pio_xfer(qc, page, offset, count);
 	}
@@ -751,7 +751,7 @@ next_sg:
 	offset = sg->offset + qc->cursg_ofs;
 
 	/* get the current page and offset */
-	page = nth_page(page, (offset >> PAGE_SHIFT));
+	page += offset >> PAGE_SHIFT;
 	offset %= PAGE_SIZE;
 
 	/* don't overrun current sg */

_

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