Skip to content
  • Kirill A. Shutemov's avatar
    mm: rename __do_fault() -> do_fault() · 80d7ef66
    Kirill A. Shutemov authored
    
    
    Current __do_fault() is awful and unmaintainable.  These patches try to
    sort it out by split __do_fault() into three destinct codepaths:
    
     - to handle read page fault;
     - to handle write page fault to private mappings;
     - to handle write page fault to shared mappings;
    
    I also found page refcount leak in PageHWPoison() path of __do_fault().
    
    This patch (of 7):
    
    do_fault() is unused: no reason for underscores.
    
    Signed-off-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
    Cc: Mel Gorman <mgorman@suse.de>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    80d7ef66