mm/hugetlb: replace page_ref_freeze() with folio_ref_freeze() in hugetlb_folio_init_vmemmap()
Message ID | 20230926174433.81241-1-sidhartha.kumar@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2290244vqu; Tue, 26 Sep 2023 17:47:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGltCrp8FFeRTqf9B6ehvRIZ6jAOSOTVRjqE60i+bvOX7AkRvNsTix46d4/9+Q4EVoBnXgy X-Received: by 2002:aa7:88cf:0:b0:68a:4d66:caf with SMTP id k15-20020aa788cf000000b0068a4d660cafmr639195pff.34.1695775631278; Tue, 26 Sep 2023 17:47:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695775631; cv=pass; d=google.com; s=arc-20160816; b=QwgQZ65Bl9U/HSkkEhdMy8UVISYL69FLoSrzx98bX8QktoS/TB8hEtvmjzbk17sp7o kcWZtNZjfRt98AOdxY5Se3QqSn9ePcocw1rsQRAYBbsc8kCt+VOo4g4qN502FK9HOfHH JhQhSIhF2WvAszjSqHVfW6r/7C6G3GItTWhflClqEM6aXPMj9uNJFpfUGek6dtRboWdM 2x/s3pWWlWV0ojCE3eVdIhl3GTjp92G3zPi0PEU4LQrHRb76BSJIE9YblgThv34+ijWJ 9h3/jy+w86mWrV7dg6ye9ow7e1J/KXEpuBkCrcYX+Pj8mM9jtoOZ6WooA3sYPVeM0CBM w2/Q== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=vxvU3kDQ0YFkBxwolL6mkETXi4KuECFdl33JAa8bkW4=; fh=PmU4m6OFi2qpbrrSxv3TL9cB4ugGGxK0z1gjbqcRzYI=; b=uDJ9aVCK0eofqjCdJYT9V5Sv7Ege/dOdudtUtOv31qE1TvVD8RdQbjd7Oo7DUto693 MeJT6zclOr5YJEM3P4RDmRZyP/6PEdu1gWQ9lZS2t/ngSE37rn9hW5H/5uKLZ4hklxE/ R7u200yGX4yYkJ/IIt+yFVHhYBWDP9BdCDCETkGanYHXVTBwCBM3lmyAEvbHOusUuLc5 pOhBpUZq2ovOrYcp2cskH1Ptpt5i2Kluv9y7cR878K5pBv2SpEGIawKHzIUuUB9TQLsm CzvGg9DUv0K2TIZSFqaPJhz/LUwSdcV7k1ug5XME8i/TG6Lie7BbO5A8ZbG97CDMJKtZ VgSg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=Ni+ghtA4; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="AZsBN/2G"; 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 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n24-20020a056a000d5800b0069109ee0b59si13144878pfv.231.2023.09.26.17.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 17:47:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=Ni+ghtA4; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="AZsBN/2G"; 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 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C6AFB826A914; Tue, 26 Sep 2023 10:45:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234282AbjIZRpZ (ORCPT <rfc822;pwkd43@gmail.com> + 28 others); Tue, 26 Sep 2023 13:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbjIZRpX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 26 Sep 2023 13:45:23 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A690E9F for <linux-kernel@vger.kernel.org>; Tue, 26 Sep 2023 10:45:17 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38QFOrEp004915; Tue, 26 Sep 2023 17:44:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=vxvU3kDQ0YFkBxwolL6mkETXi4KuECFdl33JAa8bkW4=; b=Ni+ghtA4mlaj8o7Y5acMdyM/aLWNXs9o97uJQjgUifDCvJ2IDVh1Ygm0fu4rYskzN3b5 3T1wBfA6Lhu+21vR18wKIvTlZdRS8QYKavNUkeVxUgn/ARTVQLzWMwwWQNcmV4HuwOqr o0fv5LamuzGZ+XeuO1ghSgxtRbuu4Bd/T9VQHeIwJpYgEZ1FSEcD59xpGjxw6wbFhE7U xZtjdR4h64Pq0Kmsf1ydBo5RCqdTtzmW8DlxJNzqya9LsGgCXvVQK1T+wJcZfSWUWGmW OW+3RNFaMQPCYBKYFGWli1k/sb2CfKYaQimXJMrG9KJ0dKMuNhwuW2/UYFTfvSU3b41f Yg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t9rjuf7n2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Sep 2023 17:44:49 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38QHi1mm039336; Tue, 26 Sep 2023 17:44:47 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3t9pfck038-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Sep 2023 17:44:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eFC6uN8l0zr06VDdM5t9MqB57vyHEotrMu3QfekkntyN9OHRQ9mi0Yzo2w9Ur54Sm1fJ0aLEDcPabAMTLMuXhP1x1OD4Eo6sni0oBka8RZB/DZPGsUzu61FAP4yjufavacNiqLrQEBbOAxNYn99aNNs415Sn3Vg6Yc5bL6XG7PnBFwExW8IrXUtjzSDgq50+wqZHX7uEN0a4e2WViPMOVbKfFlUPIEFOku7m7autBm87GNoZ1+SHc7eH+AwITE5XUU8YNB6bw5rpNtkHcnKfNj7FOjIvlU8oWAkcHKpwX1Eddl+28qi+NF2m2irZn09f/m5a6wuRYD/n+egBEZuUdg== 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=vxvU3kDQ0YFkBxwolL6mkETXi4KuECFdl33JAa8bkW4=; b=SOKIrvW7cnsJWxIsAmG/N7esje7t213zZYVNQAlwe4jKQPRAaZBcQKhJ5mc3CtFpcxgO3ZK1f/E5tYO0SThYgdjW248I1aeY2tcnLzkdFP7SDKL1SaRf4rEEFS2iteEefR/zWJ1ZtVQPdwM7BrixEQXmfKafkI2e5PfVpHC0gnKSnFx8iUZiJEdXiV9H7MU5GTPIaDO3qxuLNDO71BNRqZFv5l/Hw/Dm7idtbXpEEsye6GkHuAFLLLyqEW7fW2dzBEa7oOebpan7L3vzH8poxGPHts3Zkv0Id3iLObvlwXXoD9PNL9/+DoOwx2+wVqRVdldgdarPS3ow9mLJZgR10w== 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=vxvU3kDQ0YFkBxwolL6mkETXi4KuECFdl33JAa8bkW4=; b=AZsBN/2G3Q3k/PPXX8WxPMWprA0MavPRfiin5dLBIJC5zxtzcsEQ4sCsaFDtT/FfkYk5Lwb6BCM3uV+kNFCE1o9sPssdFQPDG7rz7AKlLLuZDPTSzhTh+AdNXFTQr6I0TlnEhEPvL8RgMvDrvzp3gcjNTCMTw5ts+sy/80rk7uk= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by DS0PR10MB6198.namprd10.prod.outlook.com (2603:10b6:8:c2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.19; Tue, 26 Sep 2023 17:44:45 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::c96b:bc13:b1d3:2ef]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::c96b:bc13:b1d3:2ef%6]) with mapi id 15.20.6813.027; Tue, 26 Sep 2023 17:44:45 +0000 From: Sidhartha Kumar <sidhartha.kumar@oracle.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, willy@infradead.org, usama.arif@bytedance.com, Sidhartha Kumar <sidhartha.kumar@oracle.com> Subject: [PATCH] mm/hugetlb: replace page_ref_freeze() with folio_ref_freeze() in hugetlb_folio_init_vmemmap() Date: Tue, 26 Sep 2023 10:44:33 -0700 Message-ID: <20230926174433.81241-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.41.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0223.namprd13.prod.outlook.com (2603:10b6:a03:2c1::18) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|DS0PR10MB6198:EE_ X-MS-Office365-Filtering-Correlation-Id: a096fa9f-680c-49ee-b470-08dbbeb8455a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1Y4L5J9IgbgPZcJ7V6H/aDu43j+BspyEC06XS8LXZjXtYjWKAH3IgM+6SEmXpfgVuIxcmYrjPKN0m8eRwsYq3218pGhulQQru8yTDMFHOc2oDIliLooSj9C8WOLu/0AMlzCO0/Pp6YWgS9FimtHTkidDNilUredBZYdQWZ+yT1P79qD5Xhg5qzViq/GbU8hMsTvQg+Zv6uF5ZVN/m2NlVECVtutBSt4xSqNnUka7lT7XZ0fOsjsHcuOWgurG8MnAcIrFbDgfKwCFG6f+YAJhVXDgav9jYZF3OxJEo2Pki2AOmju0ApX/2Y+Berol2/kKuk92Gv44+CR2A/2N3y3HGc9EPLvXrLjp9N+eiTGbgKfT16yFqzTP6hqHN1M6M/j39NDL1pSJ97SfImzCWf6XpB+5bWwNi6o4NFmM2A0wFgqAojwLqxHVuYUb5i1sk0ksT7ygogLvJYFDC03feB1JLmezpEWza7j2zocvWwHD+s6okLK7UYhnPZiARsUDI7dYcHaQhggiyO3osw85yfIhHfGMh5bWV/7F40MR2Fk1O+KY7QsEm/EDL4Pv9aOnTASw X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(39860400002)(346002)(376002)(136003)(396003)(230922051799003)(451199024)(1800799009)(186009)(6486002)(6666004)(6506007)(83380400001)(478600001)(5660300002)(36756003)(86362001)(1076003)(4744005)(107886003)(6512007)(2906002)(66476007)(8676002)(316002)(8936002)(38100700002)(44832011)(66556008)(41300700001)(66946007)(4326008)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: O0HqqLE8xkBa9jHo5v1m3MZLfWnMRTed1AFmg/+SgHRqYfePLqq9/LM3JdI1emuXJqtgydVsmzQrtjn4oUYBFcG41d0J6J7YY2r4OuJZMnXA+d5cTPaIgJZtLcR3IHxXa5GqagL/X2Q0c1OGMiwhjAVM2aqAysAfrLZAY28LnbB2I9bcOVO+g3BcuTngv67RFAtf/oWa6XGo8sJ97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Pb5E3CtkouQ5WTytKyYvUFsAKKWBtBA4jTZAh8kBxx1l+KMYRwrwH8joLZMDt4hYa7veNLQAy/ktyFKTO2zvUelTUVzKWjwD8UB6ycYfkrPlHWryeIu0j2i7s8YSO++qXNxnbf3XuhOUFx+au59WffR0ZBnXtYAUoI+norXFFboFvkka6Rjrja9MsI5vCV9IRQaxwG0gbIt2Ua/KZfjM1M0/NfY4EkBLQ7FjqEotqoXeyhEqVmXOHLCgdOxcmpZeKdBOOqRPSVIhI8CdqYYdTKaU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a096fa9f-680c-49ee-b470-08dbbeb8455a X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2023 17:44:45.1289 (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: Ntv0Wm4IWNJEeWoXDorZDalepLRLSSx054PctBzlrgKBLZGdUYN8FcC5XC+c9Ps4mDugITQI4O8yVftVlgfa+/eUIL9Yk9ZOyQVdGPrQS2k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6198 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_13,2023-09-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 suspectscore=0 adultscore=0 phishscore=0 mlxscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309260154 X-Proofpoint-ORIG-GUID: 2Gl-sD2cUini18FBVLin7M4jln7bMNC_ X-Proofpoint-GUID: 2Gl-sD2cUini18FBVLin7M4jln7bMNC_ X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 10:45:35 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778149628266134752 X-GMAIL-MSGID: 1778149628266134752 |
Series |
mm/hugetlb: replace page_ref_freeze() with folio_ref_freeze() in hugetlb_folio_init_vmemmap()
|
|
Commit Message
Sidhartha Kumar
Sept. 26, 2023, 5:44 p.m. UTC
No functional difference, folio_ref_freeze() is currently a wrapper for
page_ref_freeze().
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
---
mm/hugetlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> On Sep 27, 2023, at 01:45, Sidhartha Kumar <sidhartha.kumar@oracle.com> wrote: > > > No functional difference, folio_ref_freeze() is currently a wrapper for > page_ref_freeze(). > > Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Thanks
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index dc35ae8fdd61..77a399afb60a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -3191,7 +3191,7 @@ static void __init hugetlb_folio_init_vmemmap(struct folio *folio, /* Prepare folio head */ __folio_clear_reserved(folio); __folio_set_head(folio); - ret = page_ref_freeze(&folio->page, 1); + ret = folio_ref_freeze(folio, 1); VM_BUG_ON(!ret); /* Initialize the necessary tail struct pages */ hugetlb_folio_init_tail_vmemmap(folio, 1, nr_pages);