aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <[email protected]>2023-07-21 17:24:32 +0200
committerJens Axboe <[email protected]>2023-07-21 09:41:35 -0600
commit07e981137f17e5275b6fa5fd0c28b0ddb4519702 (patch)
tree49d27a18de429c31560bc45f2377de02dddd34f1
parent32832a407a7178eec3215fad9b1a3298c14b0d69 (diff)
ia64: mmap: Consider pgoff when searching for free mapping
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. Cc: [email protected] # 6.4 Signed-off-by: Helge Deller <[email protected]> Tested-by: matoro <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--arch/ia64/kernel/sys_ia64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/kernel/sys_ia64.c b/arch/ia64/kernel/sys_ia64.c
index 6e948d015332..eb561cc93632 100644
--- a/arch/ia64/kernel/sys_ia64.c
+++ b/arch/ia64/kernel/sys_ia64.c
@@ -63,7 +63,7 @@ arch_get_unmapped_area (struct file *filp, unsigned long addr, unsigned long len
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);
}