mm: rename __do_fault() -> do_fault()
authorKirill A. Shutemov <[email protected]>
Thu, 3 Apr 2014 21:48:08 +0000 (14:48 -0700)
committerLinus Torvalds <[email protected]>
Thu, 3 Apr 2014 23:21:03 +0000 (16:21 -0700)
commit80d7ef66142b0b4358223790e7a4cb153b48a05c
tree015aa1bba559be299fe895da2d1df4f83919144c
parentc558784fa9e65363ed32cf6ff137c89bc8b54f81
mm: rename __do_fault() -> do_fault()

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: Kirill A. Shutemov <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory.c