Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp137367ybt; Tue, 30 Jun 2020 16:33:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJHvZFPx/nI5lMNO5hL7fi98Ewnh9CET5Owg9O0jeGe0RnvS64YkMArTahlYCSWMyNNeyQ X-Received: by 2002:a17:906:178b:: with SMTP id t11mr1166348eje.489.1593560021833; Tue, 30 Jun 2020 16:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593560021; cv=none; d=google.com; s=arc-20160816; b=Qv1EgNIpwYoUwavnIpi5/QlUwGI228EqDcI2CVD9S/hrV5rVo4JpurP2ROvBVD+YjV 5oiRgbD/XeB+rmaaEqCtjEfbU6IZQTwrt5xELD83+MLLKZzxzBlliiS/Ir6UlrufT0lB fVNxwS2VIsQmlU4gMR0T2QKcXGZKbo+wofKBTrz+FdZhPKn3MesqFwROvMASmY+jRgD9 IO4O6xpVhYW+WVsjy70lGpVF1hohX2jCECWwf5GjFnQ4seG8edpew5mY7sk9WVzab/6U kyIbQSvC2iIWhW2AG4n8v/ZIItb0YnV/QLt3/RcsDW7GKNXXAITf+/WqVV8lAJU8Tmb8 v4Mw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=8xntrXJkOjHlvgVyL7GBucVnQm+i3rz5IkbLMrITKKw=; b=QqfHincxYKyAkARQyKRKru5UdivFAvTEmpaRUzCH6HcWeWXToAe7dPQ71rDxNYT5UN wquX/LjKAq9+1/yS+QgPhBryadTQBYsoxm6MeU/3+wDPiCwSvOg6tlCVGpeClteFlbqX 6k6twOOgbeNm/rtQP5dIQtsV8RI5wqTkE2s0841LgtF2zlxxvq02FX/GIg9s5H2t/rEL ccrupA4JiKQ0lvY4dfwHUks0h8XJd/ofnY6pljF9Pnt/MRhdiuDuy7EvZbTlbId0QoJm NNHnmWVs1ipb7KA1eWZKfOnH5TzR/b/eFJNDXJ1fGyuFRhO4EHYOmDsXS39TwJPSGo2c 2cGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=NvDcFFYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si2758644edx.337.2020.06.30.16.33.19; Tue, 30 Jun 2020 16:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=NvDcFFYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726093AbgF3Xaf (ORCPT + 99 others); Tue, 30 Jun 2020 19:30:35 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:42696 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbgF3Xaf (ORCPT ); Tue, 30 Jun 2020 19:30:35 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05UNSEDl135265; Tue, 30 Jun 2020 23:30:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=8xntrXJkOjHlvgVyL7GBucVnQm+i3rz5IkbLMrITKKw=; b=NvDcFFYP8uQFTBdQe7lgBku1prz3/lJAUcfFHm6QTjVNR31s2H7xn+QnxcbjfNECNzZW emnHQVhsZadJeTIMdxh2e6xGtIxggcvf9Ug3mH1rt9gNrK+nQUwQheH4ix4TmS8qg7aW LUmmMZGnvLI9COXrjduTyBUI5SFERZtqX1r0JhEBfAckX1+JrJ6F9FpNdy6NGc6exIoq sIIHcKc2r63UZ7LAuIJrZ1TWyctArEQLKAdsp3eAY7Wjkq2Lc8kd1mE/n+Fb1UhSWZra x6CMCIFfx7jYJ0QMaPeEXh7pU0QWrl4PhExUuVyyC5EPNmjq7aAHBtsOKyGyBLRYHk+f hw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 31ywrbnknr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 30 Jun 2020 23:30:17 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05UNMZcH052099; Tue, 30 Jun 2020 23:28:17 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3020.oracle.com with ESMTP id 31xfvt5qm0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jun 2020 23:28:16 +0000 Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 05UNSCdK004168; Tue, 30 Jun 2020 23:28:13 GMT Received: from [192.168.2.112] (/50.38.35.18) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 30 Jun 2020 23:28:12 +0000 Subject: Re: [PATCH v3 01/15] mm,hwpoison: cleanup unused PageHuge() check To: nao.horiguchi@gmail.com, linux-mm@kvack.org Cc: mhocko@kernel.org, akpm@linux-foundation.org, osalvador@suse.de, tony.luck@intel.com, david@redhat.com, aneesh.kumar@linux.vnet.ibm.com, zeil@yandex-team.ru, naoya.horiguchi@nec.com, linux-kernel@vger.kernel.org References: <20200624150137.7052-1-nao.horiguchi@gmail.com> <20200624150137.7052-2-nao.horiguchi@gmail.com> From: Mike Kravetz Message-ID: <890127ee-b6e1-9e96-d1dd-c04bd92f836f@oracle.com> Date: Tue, 30 Jun 2020 16:28:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200624150137.7052-2-nao.horiguchi@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9668 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 spamscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006300162 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9668 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxlogscore=999 clxscore=1011 cotscore=-2147483648 priorityscore=1501 lowpriorityscore=0 malwarescore=0 mlxscore=0 adultscore=0 suspectscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006300162 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/24/20 8:01 AM, nao.horiguchi@gmail.com wrote: > From: Naoya Horiguchi > > Drop the PageHuge check, which is dead code since memory_failure() forks > into memory_failure_hugetlb() for hugetlb pages. > > memory_failure() and memory_failure_hugetlb() shares some functions like > hwpoison_user_mappings() and identify_page_state(), so they should properly > handle 4kB page, thp, and hugetlb. > > Signed-off-by: Naoya Horiguchi > Signed-off-by: Oscar Salvador Reviewed-by: Mike Kravetz -- Mike Kravetz