mm: rmap: split out page_remove_file_rmap()
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 29 Oct 2014 21:50:51 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <hannes@cmpxchg.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/rmap.c