mm: refactor do_wp_page handling of shared vma into a function
authorShachar Raindel <[email protected]>
Tue, 14 Apr 2015 22:46:35 +0000 (15:46 -0700)
committerLinus Torvalds <[email protected]>
Tue, 14 Apr 2015 23:49:03 +0000 (16:49 -0700)
commit93e478d4c36ecaf15b942988b8272102d661d44e
treec3d5af0f964bf1585e71d52baf436081fd567087
parent2f38ab2c3c7fef04dca0313fd89d91f142ca9281
mm: refactor do_wp_page handling of shared vma into a function

The do_wp_page function is extremely long.  Extract the logic for
handling a page belonging to a shared vma into a function of its own.

This helps the readability of the code, without doing any functional
change in it.

Signed-off-by: Shachar Raindel <[email protected]>
Acked-by: Linus Torvalds <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Acked-by: Andi Kleen <[email protected]>
Acked-by: Haggai Eran <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Peter Feiner <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Reviewed-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory.c