mm: filter unevictable page out in deactivate_page()
authorMinchan Kim <minchan.kim@gmail.com>
Wed, 25 May 2011 00:12:31 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:27 +0000 (08:39 -0700)
commit821ed6bbed3cf41c4050a431eeb822b33868d36a
tree50f6808a20263aaaf546a69218e1c1312ce7b51e
parent2cbea1d3ab11946885d37a2461072ee4d687cb4e
mm: filter unevictable page out in deactivate_page()

It's pointless that deactive_page's operates on unevictable pages.  This
patch removes unnecessary overhead which might be a bit problem in case
that there are many unevictable page in system(ex, mprotect workload)

[akpm@linux-foundation.org: tidy up comment]
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Reviewed-by: Rik van Riel<riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swap.c