Re: [Linux-ia64] kernel update (relative to 2.5.59)

Arun Sharma
2003-01-28T19:44:05Z

David Mosberger <davidm@napali.hpl.hp.com> writes:

Hi David,

> I just uploaded the latest ia64 patch to the usual location(s). You
> can get it from ftp.kernel.org/pub/linux/ia64/ports/v2.5/ in
> file:
>
> linux-2.5.59-ia64-030124.diff.gz

This patch was needed to get the kernel to compile with hugetlb enabled.

-Arun

--- linux-2.5.59/arch/ia64/kernel/sys_ia64.c- Mon Jan 27 19:04:07 2003
+++ linux-2.5.59/arch/ia64/kernel/sys_ia64.c Mon Jan 27 19:04:16 2003
@@ -16,6 +16,7 @@
#include <linux/smp.h>
#include <linux/smp_lock.h>
#include <linux/highuid.h>
+#include <linux/hugetlb.h>

#include <asm/shmparam.h>
#include <asm/uaccess.h>
--- linux-2.5.59/arch/ia64/mm/hugetlbpage.c- Mon Jan 27 18:49:51 2003
+++ linux-2.5.59/arch/ia64/mm/hugetlbpage.c Tue Jan 28 12:03:16 2003
@@ -242,7 +242,7 @@
ret = -ENOMEM;
goto out;
}
- add_to_page_cache(page, mapping, idx);
+ add_to_page_cache(page, mapping, idx, GFP_ATOMIC);
unlock_page(page);
}
set_huge_pte(mm, vma, page, pte, vma->vm_flags & VM_WRITE);