]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/rmap: make rmap_walk to get the rmap_walk_control argument
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Mon, 16 Dec 2013 23:45:11 +0000 (10:45 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:45:11 +0000 (10:45 +1100)
commit428de3a83a8ebbab377f2f97ee001feec75ed50e
treefa7d5dc21091f3d080dc5bf062f41762617cc3e2
parente5768046ab0ebbab64d41222e0968d6852e8c40e
mm/rmap: make rmap_walk to get the rmap_walk_control argument

In each rmap traverse case, there is some difference so that we need
function pointers and arguments to them in order to handle these

For this purpose, struct rmap_walk_control is introduced in this patch,
and will be extended in following patch.  Introducing and extending are
separate, because it clarify changes.

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>
include/linux/ksm.h
include/linux/rmap.h
mm/ksm.c
mm/migrate.c
mm/rmap.c