]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/rmap: use rmap_walk() in page_mkclean()
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Mon, 16 Dec 2013 23:45:12 +0000 (10:45 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:45:12 +0000 (10:45 +1100)
commitf548180a1bb0ec48dddcfa7b65a57d6107c1e416
tree14e30c4c16224005e7e616d0a1611de760e29ccc
parent37f093cdf84d228f50c8058982c43de98e05c9e5
mm/rmap: use rmap_walk() in page_mkclean()

Now, we have an infrastructure in rmap_walk() to handle difference from
   variants of rmap traversing functions.

So, just use it in page_mkclean().

In this patch, I change following things.

1. remove some variants of rmap traversing functions.
    cf> page_mkclean_file
2. mechanical change to use rmap_walk() in page_mkclean().

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/rmap.c