patch comments [4/5]
"Matt Dew" <[email protected]> Fri, 22 Sep 2006 15:31:27 -0600
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
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/plain, 1.3 KB)
--- a/hpc/migrecv.c 2006-09-22 15:18:43.000000000 -0600
+++ b/hpc/migrecv.c 2006-09-22 15:19:54.000000000 -0600
@@ -244,13 +244,11 @@
extern asmlinkage long sys_madvise(unsigned long, size_t, int);
- printk("FUNCTION: mig_do_receive_vma\n");
-
a = (struct omp_mig_vma *)pkt->data;
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)
@@ -267,23 +265,8 @@
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 = (VM_READ | VM_WRITE | VM_EXEC);
- // VM_READ = 0x1
- // VM_WRITE = 0x2
- // VM_EXEC = 0x4
+ prot |= (a->vm_flags & (VM_READ | VM_WRITE | VM_EXEC));
/* mmap stuff */
down_write(&p->mm->mmap_sem);
@@ -304,10 +287,8 @@
return result;
}
-
kcom_send_ack(p, pkt);
- printk("leaving FUNCTION: mig_do_receive_vma\n");
return 0;
}
EXPORT_SYMBOL_GPL(mig_do_receive_vma);