Re: [PATCH V2] mm: compaction: skip memory compaction when there are not enough migratable pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+	/*
+	 * Gup-pinned pages are non-migratable. After subtracting these pages,
+	 * we need to check if the remaining pages are sufficient for memory
+	 * compaction.
+	 */
+	if ((sum - nr_pinned) < (1 << order))
+		return false;
+

Looks reasonable to me, but let's see if other people have any comments.


Noting that Barry had some concerns as reply to v3.

--
Cheers,

David / dhildenb





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux