]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70bbe99cfc315fb3847d5d8facb59ea8a2cec189
tree972a445b8a00c5c0f0a360d30893239cfa1f4e8e
parente0ce563ac946caf01c5dd8344350daad0f77e7d4
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