[PATCH] move die notifier handling to common code fix vmalloc_sync_all in nommu

[PATCH] move die notifier handling to common code fix vmalloc_sync_all in nommu

Post by Wu, Brya » Thu, 05 Apr 2007 15:40:14



Signed-off-by: Bryan Wu < XXXX@XXXXX.COM >
---
mm/nommu.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/mm/nommu.c b/mm/nommu.c
index 2d0a82f..0016557 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -261,6 +261,14 @@ void vunmap(void *addr)
}

/*
+ * Implement a stub for vmalloc_sync_all() if the architecture chose not to
+ * have one.
+ */
+void __attribute__((weak)) vmalloc_sync_all(void)
+{
+}
+
+/*
* sys_brk() for the most part doesn't need the global kernel
* lock, except when an application is doing something ***
* like trying to un-brk an area that has already been mapped
--
1.5.0.5

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

1. [PATCH 5/5] nommu: fix bug ip_conntrack does not work on nommu

2. [PATCH] NOMMU: Supply get_unmapped_area() to fix NOMMU SYSV SHM

From: David Howells < XXXX@XXXXX.COM >

Supply a get_unmapped_area() to fix NOMMU SYSV SHM support.

Signed-Off-By: David Howells < XXXX@XXXXX.COM >
---

mm/nommu.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/mm/nommu.c b/mm/nommu.c
index 23fb033..ba6df4d 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -1193,6 +1193,28 @@ void unmap_mapping_range(struct address_space *mapping,
EXPORT_SYMBOL(unmap_mapping_range);

/*
+ * ask for an unmapped area at which to create a mapping on a file
+ */
+unsigned long get_unmapped_area(struct file *file, unsigned long addr,
+ unsigned long len, unsigned long pgoff,
+ unsigned long flags)
+{
+ unsigned long (*get_area)(struct file *, unsigned long, unsigned long,
+ unsigned long, unsigned long);
+
+ get_area = current->mm->get_unmapped_area;
+ if (file && file->f_op && file->f_op->get_unmapped_area)
+ get_area = file->f_op->get_unmapped_area;
+
+ if (!get_area)
+ return -ENOSYS;
+
+ return get_area(file, addr, len, pgoff, flags);
+}
+
+EXPORT_SYMBOL(get_unmapped_area);
+
+/*
* Check that a process has enough memory to allocate a new virtual
* mapping. 0 means there is enough memory for the allocation to
* succeed and -ENOMEM implies there is not.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/

3. [uClinux-dev] [PATCH 4/4] nommu - backward compatibility patch for mm/nommu.c

4. [PATCH 1/4] Task notifier: Allow the removal of a notifier from the notifier handler

5. [PATCH 4/4] nommu - backward compatibility patch for mm/nommu.c

6. [PATCH 2/4] nommu - nommu patch for fs/namei.c

7. [uClinux-dev] [PATCH 4/4] nommu - backward compatibility patch for mm/nommu.c

8. [PATCH] i386: fix vmalloc_sync_all() for Xen

9. [PATCH -mm] Revoke core code: fix nommu arch compiling error bug

10. [PATCH -mm] Revoke core code: fix nommu arch compiling error bug

11. [PATCH -mm] Revoke core code: fix nommu arch compiling error bug

12. [PATCH 2/2] Fix CPU Hotplug: Handle dying tasks on dead CPU

13. Patch to Fix Patched Fix Patched with Fixed Patch Fix Patcher

14. [Patch 2.6.15-rc1] Clean up the die notifier registration routines

15. [Patch 2.6.14] Clean up the die notifier registration routines