[patch 21/23] openmosix/openmosix-page-protect_04.patch

Florian Delizy <[email protected]> Mon, 25 Sep 2006 17:35:10 +0200
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
(updated to work on the top of the patch tree)

Removed some commented code and fixed the page protection bits.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel
openmosix-page-protect_04.patch (text/x-patch, 1.2 KB)
Removed some commented code and fixed the page protection bits.
Index: linux/hpc/migrecv.c
===================================================================
--- linux.orig/hpc/migrecv.c	2006-09-25 16:58:17.000000000 +0200
+++ linux/hpc/migrecv.c	2006-09-25 17:04:20.000000000 +0200
@@ -241,7 +241,7 @@
 
 	OMDEBUG_MIG(2, "MIG_VMA [%lx, %ld]\n", a->vm_start, a->vm_size);
 
-		/* FIXME : Temporary disabled */
+	/* FIXME : Temporary disabled */
 		if (0 && a->vm_file) {
 			file = (task_test_dflags(p, DREMOTE))
 				? task_rfiles_get(p, a->vm_file, -1, a->i_size)
@@ -258,23 +258,9 @@
 		if (a->vm_flags & VM_EXECUTABLE)
 			flags |= MAP_EXECUTABLE;
 
-	/* VM_GROWSDOWN =  0x0100*/
-	/* VM_DENYWRITE =  0x0800*/
-	/* VM_EXECUTABLE = 0x1000*/
-
-	/* MAP_GROWSDOWN =  0x0100*/
-	/* MAP_DENYWRITE =  0x0800*/
-	/* MAP_EXECUTABLE = 0x1000*/
-
-
-	/* flags=a->vm_flags;*/
-
 		/* copy VM_(READ|WRITE|EXEC) bits to prot */
-		/* prot |= (a->vm_flags & (VM_READ | VM_WRITE | VM_EXEC));*/
+		prot |= (a->vm_flags & (VM_READ | VM_WRITE | VM_EXEC));
 		prot = (VM_READ | VM_WRITE | VM_EXEC);
-		/* VM_READ =  0x1*/
-		/* VM_WRITE = 0x2*/
-		/* VM_EXEC =  0x4*/
 
 		/* mmap stuff */
 		down_write(&p->mm->mmap_sem);