@@ -542,8 +542,9 @@ isolate_migratepages_range(struct zone *zone, struct compact_control *cc,
* splitting and collapsing (collapsing has already happened
* if PageLRU is set) but the lock is not necessarily taken
* here and it is wasteful to take it just to check transhuge.
- * Check transhuge without lock and skip if it's either a
- * transhuge or hugetlbfs page.
+ * Check transhuge without lock and *skip* if it's either a
+ * transhuge or hugetlbfs page because it's not safe to call
+ * compound_order.
*/
if (PageTransHuge(page)) {
if (!locked)