Message ID | 20190607153855.424689098@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp806728ili; Fri, 7 Jun 2019 08:52:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxZysWZOuCI9juOKHShkwLTGNQwTMl0qRbWWkXeh5hAH4QleJDUsjJQSHlBbOpeykrX2Zy X-Received: by 2002:a63:fd50:: with SMTP id m16mr3416479pgj.192.1559922755701; Fri, 07 Jun 2019 08:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559922755; cv=none; d=google.com; s=arc-20160816; b=XpeRJ+3p1CG14Fs9NmM0hTJmxeiiTMIBq/6SUClQvKEQfsHcLZhQZQcmeUkrr8f9NA uGUL/H/klWKMBoRh5kVqD5LvtveiitYWNL5e9wV8WTygZdnAs9dH2Pd6SBh96XZ4bUla OEbdbMCbHdUz3MkikaRqzwhLRFxCIGdyNROccdjOtxbxCeOdlZAsjHR1N6ytfwZSnlQf 8w1xky1fuIHvORO0M6Z7rtXYoIF1bDxe96hP30Ei8P4FynYeOxWKqxgb3vj1xBcC1Tlf x0tCEZ8HbL3Y/hilj1yfYBLYTkOt6yRs0+jWW82xDXxhcS6EIgndHjlGX49+t1CTj7v6 /kBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=b6gJa24PqlAcis9m8EGax6taAcL4PeeIEbiS38ljRL8=; b=oxWepPQMJ4aUIKQFPxkKldzHHjlMsynFSGg12kV/CwD1eKCFRR9c5BnkS6O5GamIbj 8Mr0tgiAvkMNCXh7BfgCsw2k7wtA/OOjhz1diTbTNB/oqO9gPKF/YZ1JIPLiwl3T5LAc VFqCRfA7VRuB7j+iqnqDoEpXy4FR9mN805ygeiATKS0/gEZgQJZK8hZR26YCeFIapL3j wDc6xvR6G0HHHEAg+UI9oQulzmyJ7cgrWZfzzSmKwlQSdC5LS7FbIMwTvDwQI6V/dv5S nkl17vOaDvbd7xkwIk0dLJmbc90VYzh7O7vZDYbl2xwfWARgqPFZsDbpNLajDNjnB8C2 +oHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VCg9aAIj; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si2122053pjw.80.2019.06.07.08.52.35; Fri, 07 Jun 2019 08:52:35 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=VCg9aAIj; 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 S1732162AbfFGPwe (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Fri, 7 Jun 2019 11:52:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:34928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731880AbfFGPtM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Jun 2019 11:49:12 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E3D9C21473; Fri, 7 Jun 2019 15:49:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559922551; bh=hC9OXVXPHX4MXhpkf48AC7gVpWOSOd+PECCwdEPvt3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VCg9aAIj47n0wSUoWaAf9JeI9EEigij98+QnELI0uHq7ZjDEjbY7BMWS6lDS5zcFq kZoQef7BAmXCvW0AModZi23A7mbI3W1tfabt9sR8S1m7RA4o3v0bh0KtknmXOtDOCx nNggX6Im5vP6FQUmUpVI+W/QZscd6BRFc501jQp4= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Suzuki K Poulose <suzuki.poulose@arm.com>, Marc Zyngier <marc.zyngier@arm.com>, Mel Gorman <mgorman@techsingularity.net>, Anshuman Khandual <anshuman.khandual@arm.com>, Michal Hocko <mhocko@suse.com>, Qian Cai <cai@lca.pw>, Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org> Subject: [PATCH 5.1 53/85] mm, compaction: make sure we isolate a valid PFN Date: Fri, 7 Jun 2019 17:39:38 +0200 Message-Id: <20190607153855.424689098@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190607153849.101321647@linuxfoundation.org> References: <20190607153849.101321647@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
--- a/mm/compaction.c +++ b/mm/compaction.c @@ -1397,7 +1397,7 @@ fast_isolate_freepages(struct compact_co page = pfn_to_page(highest); cc->free_pfn = highest; } else { - if (cc->direct_compaction) { + if (cc->direct_compaction && pfn_valid(min_pfn)) { page = pfn_to_page(min_pfn); cc->free_pfn = min_pfn; }