|
@@ -346,7 +346,7 @@ static unsigned long isolate_freepages_block(struct compact_control *cc,
|
|
* pages requested were isolated. If there were any failures, 0 is
|
|
* pages requested were isolated. If there were any failures, 0 is
|
|
* returned and CMA will fail.
|
|
* returned and CMA will fail.
|
|
*/
|
|
*/
|
|
- if (strict && nr_strict_required != total_isolated)
|
|
|
|
|
|
+ if (strict && nr_strict_required > total_isolated)
|
|
total_isolated = 0;
|
|
total_isolated = 0;
|
|
|
|
|
|
if (locked)
|
|
if (locked)
|