• M
    mm: uncached vma support with writenotify · c9d0bf24
    Magnus Damm 提交于
    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: NMagnus 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: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    c9d0bf24
mmap.c 65.1 KB