View Single Post
Old 10-18-12, 10:49 PM   #4
Registered User
Join Date: Apr 2003
Posts: 48
Default Re: Heads up - linux 3.7-rc* header file reorg

A better patch than just removing VM_RESERVED would probably be this:

--- nv-mmap.c.dist 2012-08-08 22:52:53.000000000 -0400
+++ nv-mmap.c 2012-08-14 23:52:41.257235863 -0400
@@ -450,7 +450,7 @@
nv_vm_list_page_count(&at->page_table[i], pages);

- vma->vm_flags |= (VM_IO | VM_LOCKED | VM_RESERVED);
+ vma->vm_flags |= (VM_IO | VM_LOCKED | (VM_DONTEXPAND | VM_DONTDUMP));

as the combination of those two flags has the same meaning as VM_RESERVED used to have before its demise. Simply removing VM_RESERVED means the vma *won't* be flagged as "DONTDUMP" or "DONTEXPAND" - both of which could result in hilarity ensuing.

(I forgot to post this part, because this change has been in the linux-next tree for a while already - the uapi stuff just landed in the last few days)
valdis is offline   Reply With Quote