Skip to contentSkip to conversation

zram-use-copy_page-for-full-page-copy.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 22, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: zram: use copy_page for full page copy
has been removed from the -mm tree. Its filename was
zram-use-copy_page-for-full-page-copy.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: Mark-PK Tsai <[email protected]>
Subject: zram: use copy_page for full page copy
Date: Sat, 7 Oct 2023 15:05:53 +0800

Some architectures, such as arm, have implemented optimized copy_page for full page copying.

Replace the full page memcpy with copy_page to take advantage of the optimization.

---

 drivers/block/zram/zram_drv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/zram/zram_drv.c renamed from drivers/block/zram/zram_drv.c~zram-use-copy_page-for-full-page-copy +1 -1
@@ -1337,7 +1337,7 @@ static int zram_read_from_zspool(struct
 	src = zs_map_object(zram->mem_pool, handle, ZS_MM_RO);
 	if (size == PAGE_SIZE) {
 		dst = kmap_local_page(page);
-		memcpy(dst, src, PAGE_SIZE);
+		copy_page(dst, src);
 		kunmap_local(dst);
 		ret = 0;
 	} else {

_

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