Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2593606ybc; Wed, 20 Nov 2019 17:09:57 -0800 (PST) X-Google-Smtp-Source: APXvYqz8X6gc3LEF2z+vg7c4PBEzLlUA+nmop3Pcr4gs9XrBfpu3YpAKoehkCNY2nelG1RPuJEyz X-Received: by 2002:a17:906:5049:: with SMTP id e9mr9437308ejk.53.1574298597350; Wed, 20 Nov 2019 17:09:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574298597; cv=none; d=google.com; s=arc-20160816; b=yKCgWOrvJkD4fJSHlMrzOC5LBxlN5oEiQ45MQG5lRaulRQOPP5xEgS/XoKzQ/BVkE2 MzJqyAuQJQF1BVGn2iNXyP41suiRK8lm/wAEGdaihUpxAh/ggOCl7ovk3riRyfWSN8h/ /KVtv4Gdg36OXk3nwdfzQdPpBZ11ib2OcYx+1QsfQCBYclIxGLlrCyncCuK9WUpIn+pq LPhdZGuksyKisnQMBoSS82y6lJpop9b+RoUsDpXr4TwaPCD0a0yW1CA3PvGOq7ueAauP haUjTBbaJkRCw/mep8ovK18QD6KPtZCxInaVpaFrhnWaLx6oCicDQiDC4DyUDhCZWd6L dZ8A== 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:reply-to:message-id :subject:cc:to:from:date; bh=BTzcVvtc1lj3YK7Onpt2yJlhA3C/Ee/gSJHeYC7EpMQ=; b=tRiiR6pQbT/V+xLG12peqnCP71ZqUjZZ5GNDQ/2k/uEDn+MqzsDWtVyt2ByBx60R1j CJIez9Au+tKX3FCR19gCIlFRw2JMSm5OSVoh5tQuOR2h/FlzaORuHRVe/qP04zmCiuTJ EBW1Cq5MGYVjQ7FN3kv+OQ+Rkbq+G+YQ/QoRhLbC9VnpW37QtehiZ7tH7OEAUjuz/7s/ poBeThN4iAHs/dKMZ5u+HXF0bQoZaXN48B8yiFDfluKlR7u+Y0+6PraciMaqqjvG2QAf EQQAotF6dpwW4vY1rKIySKig8dsfFakIdS7eUk5jkjwqa4zqA0Aj09K8G9HLIj+2uVZ/ Zpag== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ny24si618077ejb.317.2019.11.20.17.09.32; Wed, 20 Nov 2019 17:09:57 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726747AbfKUBFr (ORCPT + 99 others); Wed, 20 Nov 2019 20:05:47 -0500 Received: from mga14.intel.com ([192.55.52.115]:5760 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbfKUBFr (ORCPT ); Wed, 20 Nov 2019 20:05:47 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2019 17:05:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,223,1571727600"; d="scan'208";a="237975989" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by fmsmga002.fm.intel.com with ESMTP; 20 Nov 2019 17:05:45 -0800 Date: Thu, 21 Nov 2019 09:05:36 +0800 From: Wei Yang To: David Hildenbrand Cc: Wei Yang , n-horiguchi@ah.jp.nec.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] mm/memory-failure.c: not necessary to recalculate hpage Message-ID: <20191121010536.GA12975@richard> Reply-To: Wei Yang References: <20191118082003.26240-1-richardw.yang@linux.intel.com> <20191118082003.26240-2-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 20, 2019 at 04:07:38PM +0100, David Hildenbrand wrote: >On 18.11.19 09:20, Wei Yang wrote: >> hpage is not changed. >> >> Signed-off-by: Wei Yang >> --- >> mm/memory-failure.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/mm/memory-failure.c b/mm/memory-failure.c >> index 392ac277b17d..9784f4339ae7 100644 >> --- a/mm/memory-failure.c >> +++ b/mm/memory-failure.c >> @@ -1319,7 +1319,6 @@ int memory_failure(unsigned long pfn, int flags) >> } >> unlock_page(p); >> VM_BUG_ON_PAGE(!page_count(p), p); >> - hpage = compound_head(p); >> } >> /* >> > >I am *absolutely* no transparent huge page expert (sorry :) ), but won't the >split_huge_page(p) eventually split the compound page, such that >compound_head(p) will return something else after that call? > ok, you may get some point. I lost some concentration here. Thanks >-- > >Thanks, > >David / dhildenb -- Wei Yang Help you, Help me