Message ID | 20230112204608.80136-7-sidhartha.kumar@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4105209wrt; Thu, 12 Jan 2023 13:06:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvTW03/a9cd8cy5vTapdYk8TDdbDNP0TN/jtINefu2gLN71JSMSNiQvhriW57f2jgqjcyq8 X-Received: by 2002:a62:1b58:0:b0:581:4ab0:abcd with SMTP id b85-20020a621b58000000b005814ab0abcdmr7776757pfb.14.1673557581460; Thu, 12 Jan 2023 13:06:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673557581; cv=pass; d=google.com; s=arc-20160816; b=CONI5Hoifxuca02gpIpkb/kszH1ZElJJJVvOWaWGytcxtDpZqRv5rLOXcWhOInP82v ym1TMKYOrLOKWvKfD8r0nPmxTNFBdn+Jl2CvFMdgyjsF9zuX4oaWlvu4TdN7m5WroMK0 8hWTMl/AaTyMP374J6UKl5xZVk9bMq1X+bfZC8FDmdIYyHwqoDfx5udhYTd7Hc81AsCI MYvHBygtkAeDokCi0x+w9mzcNH7aqzOus+0gI+81gh5VABU1foDAmoj7wMN015vnZHcy S00JT+PIMx1VbGSV6JfWnclf4sTyIrgm7NjcMYvJX8XMcWMG3n1xaNpdWoz9kzXy/L/F oVHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=q6+oCQXcVUPDMQ62zkDTZuFqVr20l7Tj/4Q5KsZwSwk=; b=v3RS8abXOvT5TC75tsldHkbRSORkv9yJwjpug25K39Lkho7wtih1ORHyIhmsYB92Pw /dU12pLCTnCAkqWMctoG79malGJ4VWUtgml/KV323QnNpioRxhjWhlitxc0U6kVpO38D 0U+GLUIh0o6qxBSB+cm30i2BxGr5T3q0ZfvOkNF5/XqXIDoXgtnPS0bPSfX+Id0USwwK eIM/dF6mEZNGTJwB30ewwkW8HyIlwA/u+NU58Dt9zIZ9EBDsTUKI8Zd6IGlyOfAhdrnB sNc2ZKGzV9M1tGRwNsYJVkq0deChnji/JOsMvnN/6JVoer764L3LZ0bLCry+xmV7+FZf 8gew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=Y1zHq+uM; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Dm6copwe; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v21-20020a056a00149500b0056e48944843si19557570pfu.355.2023.01.12.13.06.05; Thu, 12 Jan 2023 13:06:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=Y1zHq+uM; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Dm6copwe; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240363AbjALVFT (ORCPT <rfc822;zhuangel570@gmail.com> + 99 others); Thu, 12 Jan 2023 16:05:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240737AbjALVDE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 12 Jan 2023 16:03:04 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A959953297 for <linux-kernel@vger.kernel.org>; Thu, 12 Jan 2023 12:46:57 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30CJXo8x023270; Thu, 12 Jan 2023 20:46:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2022-7-12; bh=q6+oCQXcVUPDMQ62zkDTZuFqVr20l7Tj/4Q5KsZwSwk=; b=Y1zHq+uMzDhfopxf7+yL6207d6diEYPBdaLBYrCTTDTRmPPPRzRMWfiM4VdY5f64wEcF kyzs2Y08U74L1+9WYzWRe336ZZP83p0M1W9UEh0X47+c54vw4vLZ3GsTLfm9kNx6Gcb2 nvChW5jkKBWFhK0PDV1h0mSGFIy1qO6TTI6RCIlJrREGxPzTFOV5qvihuOeNMZv2MLZK 4s5Md+6OLdrfy0U5bFc2FHYFz3l1pz1DGdWIcxZ3qr2So/rYKcHPibWm1EBby7r6evVp sACdHGa6xAfUwbQ2UOdM1+8Rp+mqjJl67/vwpksC9G0oMDtqku/FgMnsMLFyzhQIH1CF yg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n1y1nkhcp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jan 2023 20:46:35 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30CJ4rb4022034; Thu, 12 Jan 2023 20:46:34 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2049.outbound.protection.outlook.com [104.47.51.49]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3n1k4qt2n4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jan 2023 20:46:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GUxHhb6akqq74MTDpQzhoe368W1uU/IJaXDTQ6WKDoVAkdmh896yXz4WzvxL5MltxiIL5fEvqCV7ZNzFwLAp7VuJOxgzAHPvjG6RCqXhfvk8WkuqfZbICrlFtvcYwPmcFEba+rdIVhqTavUsHLoreSD/KuQtPtqkp/9BVRZ/vSXfTgIv9Fq/8Os+cDZKLh+h/QzunyFKGapW12gZFC+M6Dr4VqbXApHqEz5B0m0I3X3WKwFGmez1OopXYrzLk1ENe2EaJIacuIFSpQ/t4B+ikR2xgkVJpoG9UyGbMWILBuLfMnbeCOkzkIfuJPJzzgROykvpBjvxheG4B9r8KrdLcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q6+oCQXcVUPDMQ62zkDTZuFqVr20l7Tj/4Q5KsZwSwk=; b=KYiPKIOkni+vEBREpEeVTQs9E2tku8cywpdZoPTvMEDuhqsn0BRCZzu+aEc/k4c1q69N9O0t3uirZ02GClsBHuUDvHUHVNVfZG7HHsv5kzszjPphKzN4TNa3X8+V/oRZxMqLx1XxUQkY+Eh8NlgLZoJdA4lzOk02qjEAl174URZXzz4zZR/HGcNYINtsebZMzBdthBXtFqLwD8grliKxHy+edgM98GCGdHl38B/4jSK7X4r2WpimMH+J7/9P6OMqQmuWzvl27Rxgug7E9WhZAllvHBi28BSYAFHHcdy7Uyvk5rvZlLbYZ7te+GMzwONtN19sdNjKQg5T6ydc0fCIiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q6+oCQXcVUPDMQ62zkDTZuFqVr20l7Tj/4Q5KsZwSwk=; b=Dm6copwerYamrL61LSHhJ46VDovsbKDcJfDZAGKSDzrYsNonOZOgG+4hqlTcCehJqvIlN8BPtu6LZiCUqbM0ylIxnQA3QgAdKdtSPrbSo/IE5LIwSLR7+sTAkAK2zY61fpE13kspdWUfYmv1MktyxJXe25lAFKw9Rwghx/UPPhY= Received: from DS7PR10MB5117.namprd10.prod.outlook.com (2603:10b6:5:3a6::17) by CY8PR10MB6804.namprd10.prod.outlook.com (2603:10b6:930:9b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11; Thu, 12 Jan 2023 20:46:32 +0000 Received: from DS7PR10MB5117.namprd10.prod.outlook.com ([fe80::93ca:e22f:aa6d:94d9]) by DS7PR10MB5117.namprd10.prod.outlook.com ([fe80::93ca:e22f:aa6d:94d9%2]) with mapi id 15.20.6002.011; Thu, 12 Jan 2023 20:46:32 +0000 From: Sidhartha Kumar <sidhartha.kumar@oracle.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, linmiaohe@huawei.com, naoya.horiguchi@nec.com, willy@infradead.org, Sidhartha Kumar <sidhartha.kumar@oracle.com> Subject: [PATCH mm-unstable 6/8] mm/memory-failure: convert __free_raw_hwp_pages() to folios Date: Thu, 12 Jan 2023 14:46:06 -0600 Message-Id: <20230112204608.80136-7-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230112204608.80136-1-sidhartha.kumar@oracle.com> References: <20230112204608.80136-1-sidhartha.kumar@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR07CA0077.namprd07.prod.outlook.com (2603:10b6:a03:12b::18) To DS7PR10MB5117.namprd10.prod.outlook.com (2603:10b6:5:3a6::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR10MB5117:EE_|CY8PR10MB6804:EE_ X-MS-Office365-Filtering-Correlation-Id: 4bf4051b-b883-4b58-0a07-08daf4de16a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nMgCNDPHnMQS3NQqymiOGYSmTYk9tjI1NxlfvBAgaL+54HOArZJZbZS/SV2AYlPmmDko8bFxEprNbJzyKQ5cE21eJTVuHDr6+MkTJ3xY2resHP5aCrCuDS5qKTgdCmlM7cNboy5/MB1F6LCYNASz2dibNDXpqxWDAzsrxvXW7DwF7rex5z+Yw0jck8EMBvdkcagDG0hZNUvowdkKY06WeksCv4GHrWb0RLM6GN5HFCkt8UyqjpEYQ/QZ54AGJnQhxMBiK4UuOV/SJMBhsznZiZXmDLe5vCIPW2EA/uawe0G0c6gTipsuAH+/k5QlDhnueW9UtFziX2dLl3plTq9Hwtp0CFZX50AB3apLWgNmvVX1cBHh6upJT5skht0ssG5hcI01/Op09Qc5kG4gsdO7PjcdINnaq+5vY+5K9lCco115EVoZLZJZJuQ8pw8UxE0s1lb9Pa0NsRJf0cYU0ASuhswsGPC7fe32eC/pVAfbHssacdJHEQzwX/Fya4Oexe+u/WlvwEwxWDyfyqfoXJt2f7HyPf314vi5DOL4zowa6wLGK7cVPcKD8+88wZuHgMeXLaDkxQwNf3IWcXEB0TMbq3N6j95YNZmA1SLDM/sN+uuAStpb4qoIIOtfJUvyZCBR+Ot/Y0fwohiXnx4B0UPArA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR10MB5117.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(346002)(136003)(366004)(376002)(396003)(451199015)(44832011)(186003)(2616005)(6512007)(478600001)(316002)(5660300002)(107886003)(6486002)(1076003)(66946007)(8676002)(66476007)(66556008)(4326008)(83380400001)(8936002)(86362001)(41300700001)(36756003)(38100700002)(6666004)(6506007)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JJOQ+8T+O2idkqrXSrP7XN+2CeWebXJjSpyK3UL4n/gdqVF2DZnGYb8OYtLMKzUzAIf8cRpb35n5BQ68fdk2utbbnbwF5qTfqv3+XKPf6wrohexl1306OjUobDTCzQLG9o6KcrMLbaM42g1OMFXlUJ1LjKwefDEKgTBR+cgzTOE5XN3NNHBPp4a45J/j3PznG/ndaLgBoGcIgbGJ/Tn/4MNlwwmiKPs6Zm/Cot4+q1t6NWjnw+VCTeRb+n4mU25uZJTKUg/0ZZD3MrqKABY1FA5GcvaU/wcHLacnapkfexCENYcSv5vLVGFLKke5IBMhp0ffL24TtA0MLYYDbV6BqBikDcbWQE0HAodIv7Q2sbsODu1i7EBnYm2e7GcxYdvFqHF8zXk3TmvxfH3oKhqVcRV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8p169wfLtyNoshtW3XXnD8g+L0qxvjyLvkadOsx/OPF0tdF9Ebi7b9D98j4qfk4VTBWS0b7Ng/VPX/6te7NNgbvorJWgp4sy4C X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4bf4051b-b883-4b58-0a07-08daf4de16a0 X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5117.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2023 20:46:32.8405 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0vv4Q1Lbc5oakonAx79EWET5qpDN5rYeUd0wgEPm6HGfSo9ZEakn96LxHmATzdctrCZdwlfsjYlAYf3sx2rvbKLFqm5pN97c8IDI49yIs8s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6804 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-12_12,2023-01-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301120148 X-Proofpoint-GUID: hxfp-HrmliNkQGrR2AD7XvJStp0CMwlm X-Proofpoint-ORIG-GUID: hxfp-HrmliNkQGrR2AD7XvJStp0CMwlm X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754852314597688940?= X-GMAIL-MSGID: =?utf-8?q?1754852314597688940?= |
Series |
convert hugepage memory failure functions to folios
|
|
Commit Message
Sidhartha Kumar
Jan. 12, 2023, 8:46 p.m. UTC
Change __free_raw_hwp_pages() to __folio_free_raw_hwp() and modify its
callers to pass in a folio.
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
---
mm/memory-failure.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 55f34be8ea39..3fff073da89b 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1700,12 +1700,11 @@ static inline struct llist_head *raw_hwp_list_head(struct folio *folio) return (struct llist_head *)&folio->_hugetlb_hwpoison; } -static unsigned long __free_raw_hwp_pages(struct page *hpage, bool move_flag) +static unsigned long __folio_free_raw_hwp(struct folio *folio, bool move_flag) { struct llist_head *head; struct llist_node *t, *tnode; unsigned long count = 0; - struct folio *folio = page_folio(hpage); head = raw_hwp_list_head(folio); llist_for_each_safe(tnode, t, head->first) { @@ -1763,7 +1762,7 @@ static int hugetlb_set_page_hwpoison(struct page *hpage, struct page *page) * Once hugetlb_raw_hwp_unreliable is set, raw_hwp_page is not * used any more, so free it. */ - __free_raw_hwp_pages(hpage, false); + __folio_free_raw_hwp(folio, false); } return ret; } @@ -1784,7 +1783,7 @@ static unsigned long folio_free_raw_hwp(struct folio *folio, bool move_flag) if (folio_test_hugetlb_raw_hwp_unreliable(folio)) return 0; - return __free_raw_hwp_pages(&folio->page, move_flag); + return __folio_free_raw_hwp(folio, move_flag); } void folio_clear_hugetlb_hwpoison(struct folio *folio)