From: Magnus Damm Date: Tue, 15 Dec 2009 01:59:49 +0000 (-0800) Subject: mm: uncached vma support with writenotify X-Git-Tag: v2.6.33-rc1~188 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9d0bf241451;p=pandora-kernel.git 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-diff-tree failed