lkml.org 
[lkml]   [2008]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 2/8] x86 PAT: set VM_PFNMAP flag in vm_insert_pfn
vm_insert_pfn() is not setting the VM_PFNMAP flag in vma. Fix that.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>

---
mm/memory.c | 2 ++
1 file changed, 2 insertions(+)

Index: tip/mm/memory.c
===================================================================
--- tip.orig/mm/memory.c 2008-11-06 09:44:56.000000000 -0800
+++ tip/mm/memory.c 2008-11-10 09:44:47.000000000 -0800
@@ -1444,6 +1444,8 @@ int vm_insert_pfn(struct vm_area_struct

if (addr < vma->vm_start || addr >= vma->vm_end)
return -EFAULT;
+
+ vma->vm_flags |= VM_PFNMAP;
return insert_pfn(vma, addr, pfn, vma->vm_page_prot);
}
EXPORT_SYMBOL(vm_insert_pfn);
--



\
 
 \ /
  Last update: 2008-11-13 00:25    [W:0.102 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site