• N
    mm: add vm_insert_mixed · 423bad60
    Nick Piggin 提交于
    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: NNick 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: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    423bad60
memory.c 75.3 KB