• Nick Piggin's avatar
    mm: add vm_insert_mixed · 423bad60
    Nick Piggin authored
    vm_insert_mixed will insert either a raw pfn or a refcounted struct page into
    the page tables, depending on whether vm_normal_page() will return the page or
    not.  With the introduction of the new pte bit, this is now a too tricky for
    drivers to be doing themselves.
    
    filemap_xip uses this in a subsequent patch.
    Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
    Cc: Jared Hulbert <jaredeh@gmail.com>
    Cc: Carsten Otte <cotte@de.ibm.com>
    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    423bad60
memory.c 75.3 KB