diff --git a/mm/compaction.c b/mm/compaction.c index 12289afa420d9cc27eae8c69ff7242551bcf19dd..768a7349cecd9eb3b14ad522c6cc8883f1a4aedb 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -2311,8 +2311,7 @@ static enum compact_result compact_zone_order(struct zone *zone, int order, .page = NULL, }; - if (capture) - current->capture_control = &capc; + current->capture_control = &capc; ret = compact_zone(&cc, &capc); @@ -2334,6 +2333,7 @@ int sysctl_extfrag_threshold = 500; * @alloc_flags: The allocation flags of the current allocation * @ac: The context of current allocation * @prio: Determines how hard direct compaction should try to succeed + * @capture: Pointer to free page created by compaction will be stored here * * This is the main entry point for direct page compaction. */