[PATCH OLK-6.6 06/15] mm/compaction: factor out code to test if we should run compaction for target order