mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm: memcontrol: replace mem_cgroup_lruvec_online with mem_cgroup_online
mem_cgroup_lruvec_online() takes lruvec, but it only needs memcg. Since get_scan_count(), which is the only user of this function, now possesses pointer to memcg, let's pass memcg directly to mem_cgroup_online() instead of picking it out of lruvec and rename the function accordingly. Signed-off-by: Vladimir Davydov <[email protected]> Acked-by: Johannes Weiner <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3337767850
commit
eb01aaab43
2 changed files with 11 additions and 18 deletions
|
|
@ -1997,7 +1997,7 @@ static void get_scan_count(struct lruvec *lruvec, struct mem_cgroup *memcg,
|
|||
if (current_is_kswapd()) {
|
||||
if (!zone_reclaimable(zone))
|
||||
force_scan = true;
|
||||
if (!mem_cgroup_lruvec_online(lruvec))
|
||||
if (!mem_cgroup_online(memcg))
|
||||
force_scan = true;
|
||||
}
|
||||
if (!global_reclaim(sc))
|
||||
|
|
|
|||
Loading…
Reference in a new issue