]> Git Repo - linux.git/commit
mm: uncached vma support with writenotify
authorMagnus Damm <[email protected]>
Tue, 15 Dec 2009 01:59:49 +0000 (17:59 -0800)
committerLinus Torvalds <[email protected]>
Tue, 15 Dec 2009 16:53:21 +0000 (08:53 -0800)
commitc9d0bf241451a3ab7d02e1652c22b80cd7d93e8f
treef72d7eedf3fee82193407c7190321399833f422c
parent62c0c2f198c1f2ead05c961e83ef486c45888325
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 <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Paul Mundt <[email protected]>
Cc: Jaya Kumar <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mmap.c
This page took 0.059614 seconds and 4 git commands to generate.