From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58F51C2BAEF for ; Tue, 5 Nov 2019 08:58:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 170FF20869 for ; Tue, 5 Nov 2019 08:58:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NKj7urW2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 170FF20869 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id ACEBD6B0006; Tue, 5 Nov 2019 03:58:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A7EA46B0007; Tue, 5 Nov 2019 03:58:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9BC866B0008; Tue, 5 Nov 2019 03:58:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0050.hostedemail.com [216.40.44.50]) by kanga.kvack.org (Postfix) with ESMTP id 8870E6B0006 for ; Tue, 5 Nov 2019 03:58:08 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 173B1180AD81A for ; Tue, 5 Nov 2019 08:58:08 +0000 (UTC) X-FDA: 76121621856.17.heart30_29de7a2d37005 X-HE-Tag: heart30_29de7a2d37005 X-Filterd-Recvd-Size: 3483 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by imf13.hostedemail.com (Postfix) with ESMTP for ; Tue, 5 Nov 2019 08:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572944287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r5Y8efObvDU60RISxdiJngQGMPQkFpy+gNbh+IZW5yM=; b=NKj7urW2KrdIFX7u4HO2Xe9AerXookQm29JaPWR4q4SLuzLXWCBRuXCmVoih1CsveDa2Aw aZhf4l4noLXo91C+9hz3BjxCkOnbG1A4VzXcbaJHb/gZzB+1S3K8IMIwG5/kwOAHcCWEGO asVPT/FVr+UnPZ0tGmjjtZK7oZHS4Us= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-236-16T4VLGAMFeiFaZDGSE4Vg-1; Tue, 05 Nov 2019 03:58:03 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8CE9D107ACC2; Tue, 5 Nov 2019 08:58:02 +0000 (UTC) Received: from [10.36.117.253] (ovpn-117-253.ams2.redhat.com [10.36.117.253]) by smtp.corp.redhat.com (Postfix) with ESMTP id D90FE608B5; Tue, 5 Nov 2019 08:58:00 +0000 (UTC) Subject: Re: [PATCH] mm/memory-failure.c: replace with page_shift() in add_to_kill() To: Yunfeng Ye , n-horiguchi@ah.jp.nec.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, "hushiyuan@huawei.com" , "linfeilong@huawei.com" References: <7bc9d610-728c-37b0-d175-dba21dc0dfff@huawei.com> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: Date: Tue, 5 Nov 2019 09:57:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <7bc9d610-728c-37b0-d175-dba21dc0dfff@huawei.com> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: 16T4VLGAMFeiFaZDGSE4Vg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 05.11.19 09:21, Yunfeng Ye wrote: > The function page_shift() is supported after the commit 94ad9338109f > ("mm: introduce page_shift()"). >=20 > So replace with page_shift() in add_to_kill() for readability. >=20 > Signed-off-by: Yunfeng Ye > --- > mm/memory-failure.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/mm/memory-failure.c b/mm/memory-failure.c > index 3151c87dff73..e48c50cac889 100644 > --- a/mm/memory-failure.c > +++ b/mm/memory-failure.c > @@ -326,7 +326,7 @@ static void add_to_kill(struct task_struct *tsk, stru= ct page *p, > =09if (is_zone_device_page(p)) > =09=09tk->size_shift =3D dev_pagemap_mapping_shift(p, vma); > =09else > -=09=09tk->size_shift =3D compound_order(compound_head(p)) + PAGE_SHIFT; > +=09=09tk->size_shift =3D page_shift(compound_head(p)); >=20 > =09/* > =09 * Send SIGKILL if "tk->addr =3D=3D -EFAULT". Also, as >=20 Reviewed-by: David Hildenbrand --=20 Thanks, David / dhildenb