Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp505599ima; Fri, 1 Feb 2019 06:41:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IaCk4sS45lYuQHihkLVpKRvH/tEvUTp71tBGxWmltd79jBXC5b75wGZaYZ0syzFLGyHJG9z X-Received: by 2002:a63:2f07:: with SMTP id v7mr30214pgv.368.1549032062840; Fri, 01 Feb 2019 06:41:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549032062; cv=none; d=google.com; s=arc-20160816; b=U33ifsqrXsR8HfCbb4YpIhrFhKAUHWV25kiDWOtJ8ienLnkYUVSHUotFtma+sz4r9b frwR1pe8AmsdtpjLgm4vXgjmpWapkbNi0IwOfQlrpAEc6P+cd6Do9fYKPTa3OWnjHtli R1RhRxaQHDKBsf17OHXxeU8LkwpA2StE8XNPnfWDV3uOM/fdAE6JMRku9a9fB/apmasb /VpmIC4Umjj3dHB/wemur3SzQJ4vhTmWRYjzMQ5DmpccIJLBZNfQBrPeMQz3U9EBJLhQ DWXgivVrSseOaVa7ilzqS4na8MFcI6KXwx7Aqz0jvoNUGC5oQObSAcV0VxOGHgUavdsO xxlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MG7d8JlcgdEo/PiWAtqF1GY166mCr2hrF+TpvL/QC/o=; b=SIjui4ryOUilr8toTTmfD+svSwllgajqIMYmzUnryRseHL//oAQeYj9KDSrh+r6l+q iOYxhmWn4WRMSFfGlFD3BN0w9gijtH3MgJSYEwonuLtQ5PaLZGse6Di+oUygki9uI2JQ M2dE1G9WIRu3D7q2nsmT5FGlH8FxOWdMIXczmndJ+Y46YwG/kq2xQlyarjII93nYV5mM qBQhf9KfDHK2l5MmaY4vaApVHEXlXHikSaCvj5H2Cwlr5jOvdaHRsI2jZQqZ/DXyFZF0 saZJYXFBjv+R5aQdZqLWP3sbz3mtF/iZqBo0DYBlf3YeNVYajNbxLTDP4KASCWXetDk3 5eGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f90si8324382plb.362.2019.02.01.06.40.47; Fri, 01 Feb 2019 06:41:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726685AbfBAOi5 (ORCPT + 99 others); Fri, 1 Feb 2019 09:38:57 -0500 Received: from outbound-smtp13.blacknight.com ([46.22.139.230]:59668 "EHLO outbound-smtp13.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbfBAOi4 (ORCPT ); Fri, 1 Feb 2019 09:38:56 -0500 Received: from mail.blacknight.com (unknown [81.17.254.16]) by outbound-smtp13.blacknight.com (Postfix) with ESMTPS id 1D0B11C1AA6 for ; Fri, 1 Feb 2019 14:38:55 +0000 (GMT) Received: (qmail 12935 invoked from network); 1 Feb 2019 14:38:55 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[37.228.225.79]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 1 Feb 2019 14:38:55 -0000 Date: Fri, 1 Feb 2019 14:38:53 +0000 From: Mel Gorman To: Andrew Morton Cc: Vlastimil Babka , David Rientjes , Andrea Arcangeli , Linux List Kernel Mailing , Linux-MM Subject: [PATCH] mm, compaction: Capture a page under direct compaction -fix Message-ID: <20190201143853.GH9565@techsingularity.net> References: <20190118175136.31341-1-mgorman@techsingularity.net> <20190118175136.31341-23-mgorman@techsingularity.net> <2124d934-0678-6a4b-9991-7450b1e4e39a@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <2124d934-0678-6a4b-9991-7450b1e4e39a@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vlastimil pointed out that a check for isolation is redundant in __free_one_page as compaction_capture checks for it. This is a fix for the mmotm patch mm-compaction-capture-a-page-under-direct-compaction.patch Signed-off-by: Mel Gorman --- mm/page_alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d61174bb0333..b2eee9b71986 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -887,8 +887,7 @@ static inline void __free_one_page(struct page *page, continue_merging: while (order < max_order - 1) { if (compaction_capture(capc, page, order, migratetype)) { - if (likely(!is_migrate_isolate(migratetype))) - __mod_zone_freepage_state(zone, -(1 << order), + __mod_zone_freepage_state(zone, -(1 << order), migratetype); return; }