Skip to contentSkip to conversation

ia64-mmap-consider-pgoff-when-searching-for-free-mapping.patch removed from -mm tree

merged Andrew Morton 1 participant 1 message Jul 24, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ia64: mmap: consider pgoff when searching for free mapping
has been removed from the -mm tree. Its filename was
ia64-mmap-consider-pgoff-when-searching-for-free-mapping.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Helge Deller <[email protected]>
Subject: ia64: mmap: consider pgoff when searching for free mapping
Date: Fri, 21 Jul 2023 17:24:32 +0200

IA64 is the only architecture which does not consider the pgoff value when searching for a possible free memory region with vm_unmapped_area(). Adding this seems to have no negative side effect on IA64, so add it now to make IA64 consistent with all other architectures.

---

 arch/ia64/kernel/sys_ia64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/ia64/kernel/sys_ia64.c renamed from arch/ia64/kernel/sys_ia64.c~ia64-mmap-consider-pgoff-when-searching-for-free-mapping +1 -1
@@ -63,7 +63,7 @@ arch_get_unmapped_area (struct file *fil
 	info.low_limit = addr;
 	info.high_limit = TASK_SIZE;
 	info.align_mask = align_mask;
-	info.align_offset = 0;
+	info.align_offset = pgoff << PAGE_SHIFT;
 	return vm_unmapped_area(&info);
 }
 

_

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