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

Commit f052c13b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm : retry for reclaim if lmk kill is possible"

parents 37bd2475 76c3218c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3871,9 +3871,13 @@ should_reclaim_retry(gfp_t gfp_mask, unsigned order,
	 * always increment the no progress counter for them
	 */
	if ((did_some_progress || lmk_kill_possible()) &&
				order <= PAGE_ALLOC_COSTLY_ORDER)
				order <= PAGE_ALLOC_COSTLY_ORDER) {

		*no_progress_loops = 0;
	else

		if (lmk_kill_possible())
			return true;
	} else
		(*no_progress_loops)++;

	/*