aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-12-14 17:59:49 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 08:53:21 -0800
commitc9d0bf241451a3ab7d02e1652c22b80cd7d93e8f (patch)
treef72d7eedf3fee82193407c7190321399833f422c /include/linux/mm.h
parentvmscan: simplify code (diff)
downloadlinux-dev-c9d0bf241451a3ab7d02e1652c22b80cd7d93e8f.tar.xz
linux-dev-c9d0bf241451a3ab7d02e1652c22b80cd7d93e8f.zip
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 <damm@opensource.se> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Jaya Kumar <jayakumar.lkml@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
0 files changed, 0 insertions, 0 deletions