mm: rmap: split out page_remove_file_rmap()
authorJohannes Weiner <[email protected]>
Wed, 29 Oct 2014 21:50:51 +0000 (14:50 -0700)
committerLinus Torvalds <[email protected]>
Wed, 29 Oct 2014 23:33:15 +0000 (16:33 -0700)
commit8186eb6a799e4e32f984b55858d8e393938be0c1
tree972a445b8a00c5c0f0a360d30893239cfa1f4e8e
parentd7365e783edb858279be1d03f61bc8d5d3383d90
mm: rmap: split out page_remove_file_rmap()

page_remove_rmap() has too many branches on PageAnon() and is hard to
follow.  Move the file part into a separate function.

Signed-off-by: Johannes Weiner <[email protected]>
Reviewed-by: Michal Hocko <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/rmap.c