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

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

Merge "android: lowmemorykiller: consider unevictable pages"

parents 6aa80572 a99886e7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -294,6 +294,7 @@ static int lmk_vmpressure_notifier(struct notifier_block *nb,
	if (pressure >= 95) {
		other_file = global_page_state(NR_FILE_PAGES) + zcache_pages() -
			global_page_state(NR_SHMEM) -
			global_page_state(NR_UNEVICTABLE) -
			total_swapcache_pages();
		other_free = global_page_state(NR_FREE_PAGES);

@@ -307,6 +308,7 @@ static int lmk_vmpressure_notifier(struct notifier_block *nb,

		other_file = global_page_state(NR_FILE_PAGES) + zcache_pages() -
			global_page_state(NR_SHMEM) -
			global_page_state(NR_UNEVICTABLE) -
			total_swapcache_pages();

		other_free = global_page_state(NR_FREE_PAGES);
@@ -319,6 +321,7 @@ static int lmk_vmpressure_notifier(struct notifier_block *nb,
	} else if (atomic_read(&shift_adj)) {
		other_file = global_page_state(NR_FILE_PAGES) + zcache_pages() -
			global_page_state(NR_SHMEM) -
			global_page_state(NR_UNEVICTABLE) -
			total_swapcache_pages();
		other_free = global_page_state(NR_FREE_PAGES);