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

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

Merge "mm: skip rss check on MM_UNRECLAIMABLE"

parents f02eb0ba 21bbde3a
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -870,7 +870,13 @@ static void check_mm(struct mm_struct *mm)
	int i;

	for (i = 0; i < NR_MM_COUNTERS; i++) {
		long x = atomic_long_read(&mm->rss_stat.count[i]);
		long x;

		/* MM_UNRECLAIMABLE could be freed later in exit_files */
		if (i == MM_UNRECLAIMABLE)
			continue;

		x = atomic_long_read(&mm->rss_stat.count[i]);

		if (unlikely(x))
			printk(KERN_ALERT "BUG: Bad rss-counter state "