Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2546755ybc; Mon, 18 Nov 2019 00:22:44 -0800 (PST) X-Google-Smtp-Source: APXvYqycK9jz/9F8T+hLXzp+ZVrruSu8kS8YIDoU9eLF+ZOBF3P19+MJHSy31asDc5CptUYkDwo8 X-Received: by 2002:a17:906:3019:: with SMTP id 25mr25116435ejz.280.1574065364617; Mon, 18 Nov 2019 00:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574065364; cv=none; d=google.com; s=arc-20160816; b=EasEGpxWPeqNBAdUpPPC9/Kx23C2f0xQuT74ODNe+vj7yl3BpHPK2COSerZ/f5S98E iUvGHW4l9rhPaRQ5LuGKhMOA7YLD5p78SWBGtv1P6wKeZhqs4jI8fCBKCMrWcrW/dlb0 wIbMmumPd68DcoDltY+VeloQc5crnJWGGHKxtqBxRDP42mxw/pb4Fszt4xHYzxHU2fSK UhTHdEX/6ibq3w3pM7X5oB7x0Pqx2IdVzShANNToSc5DyjkyXcOFxI3qUQwAMNzFYZfg S5+7COjcEmIySQCq1b5kr5KiND9InHaRRYRlaDYmqNhzpgA9VmQhv6NE/pVWH6ovAO1q P5Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=/w/vD52RBsfurJ6V8ya6Dohqj0eI/9vu0a+GJ6j98fM=; b=CbQStZs83Hh4mE2DzvwXArR4SkyDZCuL35zuwi6WBQSZxiSEcSX2FX8aFEE4Dc1zGm DT2/hmp3XzbF/MGsUsChN1UmwwLZBL5pq9nB2TOtVLLHjJcTNJRxEIPSxejFMNTBRidP 6OdJ/o+RzSr9tK16GtElRkGr18ESbdzkRP6PvlfZI86LKwPZ6KmVLZDfYy4B0I8I0Uxd XRO/Mrm4B93qeMt6T703hwWLMpJUVKl/gyaDjEywyW+iIBjNVbOCRrEZX2QFKQLYAOle 6eMGTJUii1pUPScr6cfaL4ObkWnTYrZ9fcyTC7DoYJOwE1yVrhmyENjIHsW86clnsJOT t/2w== 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 e19si10498720ejb.379.2019.11.18.00.22.20; Mon, 18 Nov 2019 00:22:44 -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 S1726595AbfKRIU2 (ORCPT + 99 others); Mon, 18 Nov 2019 03:20:28 -0500 Received: from mga18.intel.com ([134.134.136.126]:42894 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726403AbfKRIU1 (ORCPT ); Mon, 18 Nov 2019 03:20:27 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Nov 2019 00:20:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,319,1569308400"; d="scan'208";a="209011529" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga006.jf.intel.com with ESMTP; 18 Nov 2019 00:20:25 -0800 From: Wei Yang To: n-horiguchi@ah.jp.nec.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 2/2] mm/memory-failure.c: not necessary to recalculate hpage Date: Mon, 18 Nov 2019 16:20:03 +0800 Message-Id: <20191118082003.26240-2-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191118082003.26240-1-richardw.yang@linux.intel.com> References: <20191118082003.26240-1-richardw.yang@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); } /* -- 2.17.1