]> Git Repo - linux.git/commit
mm, vmscan: extract shrink_page_list reclaim counters into a struct
authorMichal Hocko <[email protected]>
Wed, 22 Feb 2017 23:44:27 +0000 (15:44 -0800)
committerLinus Torvalds <[email protected]>
Thu, 23 Feb 2017 00:41:29 +0000 (16:41 -0800)
commit3c710c1ad11b4a856a396b181911568f3851a5d8
treeaab71833075fbff8711c7e84063666502dae6553
parent32b3f2974adca13f8a4a610c396e88c6f81eb10e
mm, vmscan: extract shrink_page_list reclaim counters into a struct

shrink_page_list returns quite some counters back to its caller.
Extract the existing 5 into struct reclaim_stat because this makes the
code easier to follow and also allows further counters to be returned.

While we are at it, make all of them unsigned rather than unsigned long
as we do not really need full 64b for them (we never scan more than
SWAP_CLUSTER_MAX pages at once).  This should reduce some stack space.

This patch shouldn't introduce any functional change.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Michal Hocko <[email protected]>
Acked-by: Hillf Danton <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c
This page took 0.053743 seconds and 4 git commands to generate.