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

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

Merge "mm/compaction.c: abort search if isolation fails"

parents 079dc130 4092087a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1157,7 +1157,9 @@ static bool suitable_migration_target(struct compact_control *cc,
static inline unsigned int
freelist_scan_limit(struct compact_control *cc)
{
	return (COMPACT_CLUSTER_MAX >> cc->fast_search_fail) + 1;
	return (COMPACT_CLUSTER_MAX >>
		min((unsigned short)(BITS_PER_LONG - 1), cc->fast_search_fail))
		+ 1;
}

/*
@@ -1363,7 +1365,7 @@ fast_isolate_freepages(struct compact_control *cc)
				count_compact_events(COMPACTISOLATED, nr_isolated);
			} else {
				/* If isolation fails, abort the search */
				order = -1;
				order = cc->search_order + 1;
				page = NULL;
			}
		}
+1 −1

File changed.

Contains only whitespace changes.