]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/mmap.c
Add a real API for dealing with blk_congestion_wait()
[linux-2.6-omap-h63xx.git] / mm / mmap.c
index e66a0b524affef544588a8c4f8a92d3473b79a34..d799d896d74aae5f19c604928eb6a52738676d66 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -64,6 +64,13 @@ pgprot_t protection_map[16] = {
        __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
 };
 
+pgprot_t vm_get_page_prot(unsigned long vm_flags)
+{
+       return protection_map[vm_flags &
+                               (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)];
+}
+EXPORT_SYMBOL(vm_get_page_prot);
+
 int sysctl_overcommit_memory = OVERCOMMIT_GUESS;  /* heuristic overcommit */
 int sysctl_overcommit_ratio = 50;      /* default is 50% */
 int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT;