• N
    pagemap: use walk->vma instead of calling find_vma() · f995ece2
    Naoya Horiguchi 提交于
    Page table walker has the information of the current vma in mm_walk, so we
    don't have to call find_vma() in each pagemap_(pte|hugetlb)_range() call
    any longer.  Currently pagemap_pte_range() does vma loop itself, so this
    patch reduces many lines of code.
    
    NULL-vma check is omitted because we assume that we never run these
    callbacks on any address outside vma.  And even if it were broken, NULL
    pointer dereference would be detected, so we can get enough information
    for debugging.
    Signed-off-by: NNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
    Cc: Andrea Arcangeli <aarcange@redhat.com>
    Cc: Cyrill Gorcunov <gorcunov@openvz.org>
    Cc: Dave Hansen <dave.hansen@intel.com>
    Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
    Cc: Pavel Emelyanov <xemul@parallels.com>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    f995ece2
task_mmu.c 37.7 KB