Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de414945 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: consider killable task's anon as reclaimable"

parents e288ab43 3771b884
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -212,7 +212,8 @@ unsigned long zone_reclaimable_pages(struct zone *zone)

	nr = zone_page_state_snapshot(zone, NR_ZONE_INACTIVE_FILE) +
		zone_page_state_snapshot(zone, NR_ZONE_ACTIVE_FILE);
	if (get_nr_swap_pages() > 0)
	if (get_nr_swap_pages() > 0
			|| IS_ENABLED(CONFIG_ANDROID_LOW_MEMORY_KILLER))
		nr += zone_page_state_snapshot(zone, NR_ZONE_INACTIVE_ANON) +
			zone_page_state_snapshot(zone, NR_ZONE_ACTIVE_ANON);