From c9d0bf241451a3ab7d02e1652c22b80cd7d93e8f Mon Sep 17 00:00:00 2001 From: Magnus Damm Date: Mon, 14 Dec 2009 17:59:49 -0800 Subject: [PATCH] mm: uncached vma support with writenotify Modify the generic mmap() code to keep the cache attribute in vma->vm_page_prot regardless if writenotify is enabled or not. Without this patch the cache configuration selected by f_op->mmap() is overwritten if writenotify is enabled, making it impossible to keep the vma uncached. Needed by drivers such as drivers/video/sh_mobile_lcdcfb.c which uses deferred io together with uncached memory. Signed-off-by: Magnus Damm Cc: Nick Piggin Cc: Hugh Dickins Cc: Paul Mundt Cc: Jaya Kumar Cc: Arnd Bergmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed