• Hugh Dickins's avatar
    [PATCH] ptwalk: p?d_none_or_clear_bad · 928876c9
    Hugh Dickins authored
    Replace the repetitive p?d_none, p?d_bad, p?d_ERROR, p?d_clear clauses
    by pgd_none_or_clear_bad, pud_none_or_clear_bad, pmd_none_or_clear_bad
    inlines throughout common and i386 - avoids a sprinkling of "unlikely"s.
    
    Tests inline, but unlikely error handling in mm/memory.c - so the ERROR
    file and line won't tell much; but it comes too late anyway, and hardly
    ever seen outside development.
    
    Let mremap use them in get_one_pte_map, as it already did in _nested;
    but leave follow_page and untouched_anonymous page just skipping _bad
    as before - they don't have quite the same ownership of the mm.
    Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    928876c9
vm86.c 20.9 KB