Message ID | 20230112204608.80136-8-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 p1csp4105045wrt; Thu, 12 Jan 2023 13:05:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXtbIetdfGdRaxEZFKkuzkm6oKJgujbXcHA/puh/O4h+b407pInAH+JeMgy+QwJUVSxpj9vd X-Received: by 2002:a05:6a20:3954:b0:b6:4b4a:bfc4 with SMTP id r20-20020a056a20395400b000b64b4abfc4mr10671850pzg.14.1673557559354; Thu, 12 Jan 2023 13:05:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673557559; cv=pass; d=google.com; s=arc-20160816; b=sERh5T/fsu/A6Uzv+yFG6S3DFbYZeWoCUeEeLvipJsxIJjAAMXTBIHnV5HyZsUVB2r yFFoftGQ19QoyRBxami/ObOddOCHkK9NXcUtOttULSRr2vpQwda9F6gfxb9nO1F4Ouit TIgfso3pGsDtgOigmMC9Nj7Cdrwz7nWLvXz1dTOHzTwaGv9ksTCJ/dsTs/Tsejt09Mmy 1queJC2Gdq3yceh4X3f6CP5URrPdpBvnwixq6cjP2+gfEuV/KGFui1APiH5uCLIV5tZF fr9clFIjDXMc11CVIjMaEUtzUWTbgSlMlw/Uhq549Sk3YCPYTgMYgE9p8HE2ZA9MjUnD DGZw== 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=Ll8zazKlpDCzUiZ/avQ+j45Xsf0kzAv847jvl6gqI3w=; b=G70LMVoaKl9H9NilRbR67su0B9q2dLXDlcMvO+GE+fARym+LkUIVDvVrIuVx/IDEXT 6W6okGZhGl8aznxhDUfKfoEhdl3L4vCYVEbUBtMNMMzA8rUT4GJd3JFpbHpbnhuK3MHa 4waNA7iuWPwLJ0E5mDKtLUyZ3uZupmWsu/TLoHb+3ITHRnk7AR/b+jFW0r/BdRxbxpZp 1sTag8xMcTY+bWCVOGa7b8nB5eYJ5prdV7jdkzHGn43V/y0RgE09aEiLRF+KeicAVh7a SSodB4EStCjprThEhdxj3RckPD+hozOiNg4xUcz1KgRewZBWH7aev8A+MQFErA11hO3d PlJQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=vrBS0oso; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=lckCxwbR; 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 v29-20020a63b95d000000b004b980d584eesi4742071pgo.49.2023.01.12.13.05.34; Thu, 12 Jan 2023 13:05:59 -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=vrBS0oso; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=lckCxwbR; 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 S233122AbjALVEz (ORCPT <rfc822;zhuangel570@gmail.com> + 99 others); Thu, 12 Jan 2023 16:04:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240324AbjALVC7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 12 Jan 2023 16:02:59 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55CC549170 for <linux-kernel@vger.kernel.org>; Thu, 12 Jan 2023 12:46:53 -0800 (PST) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30CK4qTW018485; Thu, 12 Jan 2023 20:46:37 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=Ll8zazKlpDCzUiZ/avQ+j45Xsf0kzAv847jvl6gqI3w=; b=vrBS0oso/Q0T0Krtcl1QY1FPCdewyJ3TlkjPan7BeJ96/LCpe8yzt/ERalNQ2ttxrzt4 +ut+Lf4cAC+aD5cMi0OB7SihC5wghNZNBJUeSvaUrtKplbWel0bkcJBxPvGvi+nNYaRM wT6xTGZPecFAFgAiPUrnzi/h3vVOWzs/OVLjzEpZMzhVmGQxiz5YDv9OqtVvutqZ0N8I x4QpjkGyQScipPjQT8xG8n/Br9RkKV0Coq+ecqAQZ31jOFo0sS16C6alU2XYN1klYCrW pRa+VXWnEclulprU3j7OuMViLyOWTjlnMfIVn2mxG56qfEZ8HTbC4zGhA2pDN0ha2Rps 0Q== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n2qxy88br-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jan 2023 20:46:37 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30CKGEL4007540; Thu, 12 Jan 2023 20:46:36 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2168.outbound.protection.outlook.com [104.47.59.168]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n1k4cryxk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Jan 2023 20:46:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N5JZiobYgZTMw00vgK1gwirJ2tvHRAHAM+rVA5eLNoM5rAxQ5iFzCdTy9B4fTFKoQ/nXDnjJ9US3dh+JNDUMSeBsc736pgu2YtKN+ABmHvaSPBp8u3B+wxwrA/XGhlM5iJbFu3r/jn+CGzOqDyI4750xXXDKaplz+J2ppm4N67G8UVp/phqXCvHSf5k8CU5bS+7I2VZXQN0yrqRioSU9Mb1QrK4vuV8TktOtKLXaND9WQAtaFqBu8/YsVOw1tvUpD2P56xXrN6FBxjTYzCVfBc4429UopTE3POJL1EPQZf7EfbS6+dwWRGM2UzgIN9BFH7JEwQL1k8dph3R2iPWYtQ== 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=Ll8zazKlpDCzUiZ/avQ+j45Xsf0kzAv847jvl6gqI3w=; b=hhSGVfbS/f0BkDY6YLNyldu1o012r8i9NmbIQdzAAwDxpC0H3ImTIxebAS3hQjoeSKi/phy3X7ecLCeCQz3HwVrREHZgmc4J5AWeb6w7wR+42RQIxLe3AtrVGzxLPcWtSw4I9bjMKW5E9Y5o5ktJdyv09k4eGGFVhM6VI7N+fM4kASDpTM23IPndpsnOWgH/W/Axt6z6cXz2tpKiTeP2mtN36rPIhdp3dLb79QumKwZ+IsBtAqWMb25zbmPMYSG9u0RJIgdeZTQ/idNBJdP4cRYbpYffiqIXYYxAnI0/f6N2s/2NazEZwbQNwut/r2wsB0R0Fatrw8j701fIAneB/Q== 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=Ll8zazKlpDCzUiZ/avQ+j45Xsf0kzAv847jvl6gqI3w=; b=lckCxwbRzxRsGALeLw8w67gWq6O6FEvnyNdgWMq0EkdlZF+g6DRQayMY0Bs88zPlNgx/HSXmXmOnKKPylKnqXsMUahVVph+O7niUPkwMqwJSSCh0FTm1fHgH4JG0OIk9KE5OjR9IFE09OyxD6TVSrRO12I2Htwvrh9NYpzyIBNE= 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:35 +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:35 +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 7/8] mm/memory-failure: convert hugetlb_set_page_hwpoison() to folios Date: Thu, 12 Jan 2023 14:46:07 -0600 Message-Id: <20230112204608.80136-8-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: DM6PR02CA0045.namprd02.prod.outlook.com (2603:10b6:5:177::22) 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: 108c10f7-225a-47c3-b834-08daf4de17ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ztXmkiORlJP9zEBg8iCbmzt8kS1i8bZBN60vQeAv0Nh/uij3DoAsDbgFa1YXJ1FNzM16KY9on1wCuSEOL6w/eEf4nqvWtXFvvyWh9b/XFcApFJbGHZd5u0KY6gowyxfvXOSA308/iUmiIRNMm+/glhTmswmj00qQfx6dmURRxNJcfbY7Mrj0U/WOVstI8FPZ7CDGhNUcA9PmVh8rnOg6PSmRelMegx5UYpbdQRxJ3A7DgPILhttdvY8egKVpkS/nAZJnLv0+jsTrFouqGoiqbvxMK45nJNtLCj8649fWj75rvRiqfWhZAZGcrt1WcwOn9LAztjb79higtjCR9Pz0ed6dFCnSLSVKAOwEMUGkqN/237GEZQqxwpH2RvVULtQm4/H2lywHSAD0s4Pcbhw35TeuHyleKhpX5jvmCBx0Hccz1Ub/plDprHQGy7slRO8P3rLgBHKRYSp6Gc5zP2YIrLQPCoRtL0IoZLNjVGt15RzsaHAaFp61WtPqBL7skW1zWvaAEZBC8Jgdt78phKj6m+4stcPWA/RIVS7YpaIbRSuRKc9zBH7lShbt/8limW2oOotJN5o84QxKpblkSxGFiVqOIDYcP/4aFh/wfYiJN52DTYazRvoM/9w0O+2TJ5ZcnhmM3GUUk0T+9edEOscewQ== 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: SI3DttZOqUe+lWKQeCyc/jBlsw+qtdL2wWg6+PoZ0KMqd3ApDrbAWBAieYD3y5dSnQI5h+fx6Wqt8FwYJq3MYG6d5m9gCKsZYl1pmTICiCpNi3oGcYrzgYsYgBuwc9bcDQsOKkjoxfsaRhnVtSAo/obYHUvL+gJma02haFLms48yg1VX6tqikVZ4K7FOA0JCTf0XQ3uWM4z38XPAclfUhobwML1P5l5fuUlie19xBzNnxC/HrwKd3du/27ccoeFD0IVDbm5CeTWb98jlkf74OjpKmayR8nw1NI0H9w2qnS/CMyNY9RUUTTmSqMU0TMp9Woid7Oo/dcrWwzpW7NvGBVgoaLjxj5iJe/uoC4QjvTRtBrfRLJz9z0TSbed6QFpi6VsLu8Kd/Qpmi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JwBG3EXigxOstpF3NYiL0CdZWa1H4DuAyqtELqn+Je95WYBGyXjmjfl4VM2dF2mAef72ev0dDqWjFhRFrOTeu52W08hDBtXXIUv4x0s+G3DAcX3hZEpOp/8JLW+l99m X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 108c10f7-225a-47c3-b834-08daf4de17ee 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:34.9034 (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: bm5Bh/miAjRL3Vn4C8+B+8A1am2vd5MPNCXJB9/Xi97mgikiLQxdwGf8arQPvvAJONvnWoKCFryCGgn/qLUe+e62WFEiC+KmuJ8zJyNd1xU= 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 mlxlogscore=999 mlxscore=0 spamscore=0 bulkscore=0 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301120148 X-Proofpoint-ORIG-GUID: t_zKu9hYNDQhq0oGFXB6i96po_kAOu73 X-Proofpoint-GUID: t_zKu9hYNDQhq0oGFXB6i96po_kAOu73 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?1754852291623800603?= X-GMAIL-MSGID: =?utf-8?q?1754852291623800603?= |
Series |
convert hugepage memory failure functions to folios
|
|
Commit Message
Sidhartha Kumar
Jan. 12, 2023, 8:46 p.m. UTC
Change hugetlb_set_page_hwpoison() to folio_set_hugetlb_hwpoison() and use
a folio internally.
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 3fff073da89b..fb98652b211a 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1721,13 +1721,12 @@ static unsigned long __folio_free_raw_hwp(struct folio *folio, bool move_flag) return count; } -static int hugetlb_set_page_hwpoison(struct page *hpage, struct page *page) +static int folio_set_hugetlb_hwpoison(struct folio *folio, struct page *page) { struct llist_head *head; struct raw_hwp_page *raw_hwp; struct llist_node *t, *tnode; - int ret = TestSetPageHWPoison(hpage) ? -EHWPOISON : 0; - struct folio *folio = page_folio(hpage); + int ret = folio_test_set_hwpoison(folio) ? -EHWPOISON : 0; /* * Once the hwpoison hugepage has lost reliable raw error info, @@ -1830,7 +1829,7 @@ int __get_huge_page_for_hwpoison(unsigned long pfn, int flags, goto out; } - if (hugetlb_set_page_hwpoison(&folio->page, page)) { + if (folio_set_hugetlb_hwpoison(folio, page)) { ret = -EHWPOISON; goto out; }