Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22551135rwd; Fri, 30 Jun 2023 09:20:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuwVLEhwLwJaayKbE0BLQoWPkwSfSC0FD5mE6eGnzNsvvQWgvy1vqXU/RnqZYYm/qkfAo+ X-Received: by 2002:a05:6a00:1406:b0:668:9735:573c with SMTP id l6-20020a056a00140600b006689735573cmr3393344pfu.15.1688142040363; Fri, 30 Jun 2023 09:20:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688142040; cv=pass; d=google.com; s=arc-20160816; b=n4ZZzxh+iKRc0OmU+Pv9Pskv2Bp2JBpN2Idd8l9EHia3dEFPAX7PqbOl3wH5KUmHxI GvW6tCJnWZFroP12C73YmFLCpUb4Be9r+tLwWvivqai/5d9Lf/WwQTdA7YxsNvJ117kD LktFVevG5eOIBKAgdfG/5NmBX2sQ5dq5zODZebjyrsxdeJciPH7pyPYWLkx7vhuIaOIk uHqaewQLzGJXaSJeG8hDFEGTQaM88/pdOzy0e5D5unohYJCkOGE4lVGeUqNgOnDk5LFR Lz4U64eVBtOw1BDNQZBuvBHoXKTc4HNmFXPn7lr3DvdhjURDJi/EMSO19GIAckVBvwli qJRg== 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 :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=/4LKS0h/e0wLVsm5wIpnFLcFY8ZpfxuFPJB9DE/e9sQ=; fh=MVmZkELWjcvHCQlQYOTAqNCVCDXfBjRdqy3Q1V9D9K8=; b=d5nCEAuZox2oS6ASxMXlbk08dl2iwiCeCMRVHTIiYzy8doPxYcZt+bTxHFQ8tNhFOT QllZVQRI+Wd8GeWdljLRBR9SiIlH2yfyJPKoa6TWlGLQ2tcy7gGm954uPkTXsNjfrBFf VzsZ3aUEAVZEkJlrfX0h2yJOYqNnI2uEzAOdkHCZkB79ugQRzoV1F6eUQz/XJKqo876J 8C/ZORXvsUpm9IZ/vaS944Nka10USmG5kE6vFXgpnrkCUUWadaOMo6bEjms9Mou08gAd InJpVRq8l/X20/PzrSp74Fi52kXGTsCg/5U4ydwHvXxYcNuWUjSxmAnWJGGk42qgAFbO kePQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=SKGersZ9; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HeqXYv5t; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f50-20020a056a000b3200b00670db3b5032si10793640pfu.333.2023.06.30.09.20.26; Fri, 30 Jun 2023 09:20:40 -0700 (PDT) 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-2023-03-30 header.b=SKGersZ9; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HeqXYv5t; 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 S232071AbjF3P5N (ORCPT + 99 others); Fri, 30 Jun 2023 11:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbjF3P5L (ORCPT ); Fri, 30 Jun 2023 11:57:11 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B2163ABF for ; Fri, 30 Jun 2023 08:57:10 -0700 (PDT) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35UEmrRk020055; Fri, 30 Jun 2023 15:56:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=/4LKS0h/e0wLVsm5wIpnFLcFY8ZpfxuFPJB9DE/e9sQ=; b=SKGersZ9jLHaqCYbmI9OYBObDDROELZyj7n5iWRwoL9wAeDvikt7NB4BGbyppPinR5ZE cKNv/jyxhyNzht/uOO2c+P+h13QJ3E6/HFhBcaHiZM5+OIwJJTp0UGU4pz2e+5H1Wjsr WGK1yij6FULOpfZoD+TVEx3oT3gZu8+599OiBu9s7zhLPQVJsdtiUDndDF2HN3y2AfH9 hgdGDaeq+e5LZUV6LSNgBikgN72QliItfJpX3KEPRiu/fYy3mhTXNIT6/wG296IFnZ0q znYbUBFf/NPw/QNa3TY64d22xZpkMphTzV6STqSHp2RsJguAZjSLF4IJjj4o224yS+ad 6w== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rdrhd1edq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Jun 2023 15:56:17 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35UEjmIh029615; Fri, 30 Jun 2023 15:56:17 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2105.outbound.protection.outlook.com [104.47.58.105]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rdpx90x99-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Jun 2023 15:56:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kf8JKpU1qJ0BX9EMIFxn84GXfNGjJwl12/sGmhi7R0GqgYdQPkjSklPd1iwoOchWXtOffNqHFC35TYmMGHc0QL8LKztTmRbrRU5NeGH+SA9Z9aXkCD124timdvGD5s3Cy85SUdaBehT9NJDSmWK7cqHnADJmIdTGlB67zo/984yELOHJqyC1wGRaTYAZ9Fz+XgKWTfOElK7zalRux4RvQkmQpICC/3+pPEkNxviIHEUudOgivarnwIlKKFoc9F5jzUOIVX7X8cSwEpajEN3HOF7k95pECnFRLWeUvtWq/gh0ttVJjAOzMatHMd6Y03hNOoLMW4JEBH0ccGg1yjVO1g== 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=/4LKS0h/e0wLVsm5wIpnFLcFY8ZpfxuFPJB9DE/e9sQ=; b=fIRyjg3ZTHHP/c9bdz+ULB6WVfdYQtqjRGULEpPz550mUrXm5s/Q/RYsBtIRjEBEJAaC0+nREAC2ByC+PPWI+d1KQPpnLrZsw6XGififXNPZv3NJ93D+tPU74nUoIVEwyGE1xrLvByg24zTDVy2HFNaGQVjJsiI50ajgcIwzq1HtT7FGeL+nCdrKB873hvngzzCMQl/UKyscF8vULPWsO/CAIdeZTUW2kGJ3AeooWMRo5B1CPIWchffDn06Gj6RDs6BpozsfIpyDSGeUD3H9Z1qVDffNjObsTyiO2c0ZFOdi2TIwuXYikyJnkM1ODdi5UXPVsdf9/YcI+nYCU/WCfw== 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=/4LKS0h/e0wLVsm5wIpnFLcFY8ZpfxuFPJB9DE/e9sQ=; b=HeqXYv5t7Ou230JACL6pvSB8JMD9tSxxdjZKFCzasIIOFI2zFP25DRkKpQjyca3HBNLv+MzJ+PuxF9tD4CVhkGhe+Pc0FIVmr3inZ5gclCfXhZwwk/qtVb+iP80XGQpXcEfNK9WbPaZO12b17FxaNep/gzpWx1gEsCHuipKxo1c= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by SJ2PR10MB7653.namprd10.prod.outlook.com (2603:10b6:a03:542::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Fri, 30 Jun 2023 15:56:13 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5%5]) with mapi id 15.20.6544.019; Fri, 30 Jun 2023 15:56:12 +0000 Message-ID: <4cda8a4a-e9f6-9d8b-2246-0b3f2ef7900c@oracle.com> Date: Fri, 30 Jun 2023 11:56:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 1/2] mm: remove page_rmapping() To: Peng Zhang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: willy@infradead.org, akpm@linux-foundation.org, wangkefeng.wang@huawei.com, sunnanyong@huawei.com References: <20230630121310.165700-1-zhangpeng362@huawei.com> <20230630121310.165700-2-zhangpeng362@huawei.com> Content-Language: en-US From: Sidhartha Kumar In-Reply-To: <20230630121310.165700-2-zhangpeng362@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BN8PR12CA0019.namprd12.prod.outlook.com (2603:10b6:408:60::32) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|SJ2PR10MB7653:EE_ X-MS-Office365-Filtering-Correlation-Id: 6a3d3f7c-35af-4ada-20ca-08db79828739 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cHhVb1aXH2P6173qcMKz6hptgzIrD/HUXROvPKSQq5RJrTYtjbmzjmVe6IjWHkhh1Y6xuVUc6U/KuUV53U4CaUx/KBBiL2QMylGeabsa0kYimABbbg3d7+Cfo/WvEa/bBuYbsQw+rJdPxPI5VMs/7J4T+rJqDbytdR3zQJThUeyvwS87ptKBsVVjM3EKU2JtgAUl8C+CTd1lpfEgdNF07gVQa550JW3Ib9APFx57t684oiHojh5MLFhCGXeetCr65q3myoNiNdOfkvcfpoZ/eNO1oLB4ucTb1zXkckfgARvObGKQ2rXTM5YoJAXHL7lWvP78gB7/YnZGcdZngEYhikI0QnT26J5nFJhEXdvbV2DYyGV5hcAdLIysGCTvjPdR+eF4Dh+7mv73jKasWGcAtcvMlV7fxR3GXVrZoqJc8ASMVD/GX5+Ig7eKLlGCwghvq7/cO2/jw44C5BONJvtbsYG6e+TE5zDtxUOKBBeI2l8SaBExCLORaHEpePRrHtdPOzgoNKYPDBzgjSo4QcwkuyRxwWRpIhcieYxVflBZ2/1+bpbd1e5WKZla23yDmzDfRc5G4PMoDiTiOZH2tjcA9RhnVB3NW273Q7w8eRoaRJsg4GmNDPczJOn73qSPNNY5YJpatf7s+Mss0/Y2eppD9w== 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:(13230028)(346002)(136003)(396003)(39860400002)(376002)(366004)(451199021)(31686004)(66946007)(316002)(44832011)(66556008)(66476007)(4326008)(478600001)(8936002)(36756003)(8676002)(5660300002)(6666004)(31696002)(86362001)(2906002)(41300700001)(6486002)(53546011)(186003)(6512007)(6506007)(83380400001)(38100700002)(26005)(2616005)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bElMazIvY2ltdGYrVXZvZ21UYm5wQUl4bVRnWVNoTmpRMTh6ZzFzYUpCY2ZU?= =?utf-8?B?TzZvZ1lrNmszOTlMVDFFWmh2OXVsdkd4WDlUeTEwMDlFMUFuM0dqSnRhZU1n?= =?utf-8?B?akhhYW52VTloa2g4SnNJNlNPZHpmWmltY0RpMkNWRXBYTUNlb0ZsOUNLQVRi?= =?utf-8?B?K2JiRDZDd0FCQVdmVjUzL2RxL2hKelVNM0VBRHJMTENmblZEck9UcjN3V1J6?= =?utf-8?B?dGdxaytKSjZOTVZRSkNPQmxVM2hJdUpubGJ0OTFYUVcvMWhEQTA0MWI1UFE0?= =?utf-8?B?WEJYRmNpaEFTcUNHVkNCSWpaTUxrV1BMSEpDbmpHNG93YlpSRU5ST3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= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a3d3f7c-35af-4ada-20ca-08db79828739 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2023 15:56:12.6583 (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: tXQ03bE4wdf+oUv2ZGQ0+feejiEAIXUL93HhspUb5FH1JtDE8EB94Fr56AvTHRIMQYlKSsDxYkhkP1ZzCqxKWl89BHTQTz7ulCmy2sSeRU0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR10MB7653 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-30_08,2023-06-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306300136 X-Proofpoint-GUID: sNNJlNegysbuvrzbVSI-oZ_X-PtRltwL X-Proofpoint-ORIG-GUID: sNNJlNegysbuvrzbVSI-oZ_X-PtRltwL X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 6/30/23 5:13 AM, Peng Zhang wrote: > From: ZhangPeng > > After converting the last user to folio_raw_mapping(), we can safely > remove the function. > > Signed-off-by: ZhangPeng > --- > include/linux/mm.h | 1 - > mm/memory.c | 2 +- > mm/util.c | 6 ------ > 3 files changed, 1 insertion(+), 8 deletions(-) > > diff --git a/include/linux/mm.h b/include/linux/mm.h > index 9ecb8b9c07f6..8c7eba7370b2 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -2129,7 +2129,6 @@ static inline void *folio_address(const struct folio *folio) > return page_address(&folio->page); > } > > -extern void *page_rmapping(struct page *page); > extern pgoff_t __page_file_index(struct page *page); > > /* > diff --git a/mm/memory.c b/mm/memory.c > index 21fab2727209..6921df44a99f 100644 > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -2979,7 +2979,7 @@ static vm_fault_t fault_dirty_shared_page(struct vm_fault *vmf) > * pinned by vma->vm_file's reference. We rely on unlock_page()'s > * release semantics to prevent the compiler from undoing this copying. > */ > - mapping = page_rmapping(page); > + mapping = folio_raw_mapping(page_folio(page)); > unlock_page(page); > > if (!page_mkwrite) > diff --git a/mm/util.c b/mm/util.c > index dd12b9531ac4..5e9305189c3f 100644 > --- a/mm/util.c > +++ b/mm/util.c > @@ -734,12 +734,6 @@ void *vcalloc(size_t n, size_t size) > } > EXPORT_SYMBOL(vcalloc); > > -/* Neutral page->mapping pointer to address_space or anon_vma or other */ > -void *page_rmapping(struct page *page) > -{ > - return folio_raw_mapping(page_folio(page)); > -} > - > struct anon_vma *folio_anon_vma(struct folio *folio) > { > unsigned long mapping = (unsigned long)folio->mapping; Reviewed-by: Sidhartha Kumar