Message ID | 20230706163847.403202-1-sidhartha.kumar@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1464FC0015E for <linux-mm@archiver.kernel.org>; Thu, 6 Jul 2023 16:39:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4B5EF8D0003; Thu, 6 Jul 2023 12:39:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4141F8D0001; Thu, 6 Jul 2023 12:39:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 23FD58D0003; Thu, 6 Jul 2023 12:39:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0E6F98D0001 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 12:39:16 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 9EAB88046A for <linux-mm@kvack.org>; Thu, 6 Jul 2023 16:39:15 +0000 (UTC) X-FDA: 80981747070.09.65CF59D Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf03.hostedemail.com (Postfix) with ESMTP id 2CAF62000B for <linux-mm@kvack.org>; Thu, 6 Jul 2023 16:39:10 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=g4dDq5Jn; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=rl7QKATB; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf03.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688661551; h=from:from:sender: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: references:dkim-signature; bh=eKIMZ8ZrypitCIbtsj/aGplEfX/DSuTSYvIeZckxPqk=; b=oJqxqf7MM6ejuIsGhsej8XTDSuz5flYEA9SY8c9bRN//mrYZ/7zU/UCwDqGMb6lJvQq5+I P9dEnpqXd6jTpIudmwo9yW1HOQPWm2N17uWy6uX316jGtWy+EDmuksBUEMT7BjRTBXbSx9 mH1dCz1DaZqw824KH3yMYJ6ZN2swJHA= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=g4dDq5Jn; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=rl7QKATB; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf03.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1688661551; a=rsa-sha256; cv=pass; b=lkbz0fsJwvcFbPRb9DECOTVc2b7WExUbhfbA22hlSdz0qTR/xz46TOrALBjS8FMQB2v4Y7 7MurQihls8OIKdzeiYG4C5PenpxwjRNo0i627WMCIsTKuJgEh47kPgGop5ifrshotrnt1z KRPNjQ7Fp/L4srHkO5AkUg3tftgVIEU= 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 366G3ntc002034; Thu, 6 Jul 2023 16:38:59 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=eKIMZ8ZrypitCIbtsj/aGplEfX/DSuTSYvIeZckxPqk=; b=g4dDq5JnoVfqyR0leYlZjDxmt7omyeIRziJcEWwWArejiAUG/Rg8U3ZmkxlXz0lk8kRy U2ztB0ejCDZDvWEJekcDf+p3sBaggyNQfEYlZhTNmrMr9Oz6xEK/dHn5YvC0tsdQDCk1 A2ZyuKPG7kd6JNxOWAehIGgra3Clhbiov47IQvr2Co/IbNjP8ZM7ydi2OpAP13GeAdYA 7rz4X2NBxUvltqAtoNO8J9BXUP7wUMm6bF5atX/fApcC7+KPZeFlggnCC5ScRD/ycXro BmOLgmyqD37VOUVWuDpMFumRgIWG7s/sGCErHicIxND6tauD36yOv8w53tyKP9WZw4us Gw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rjc6cs8v3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jul 2023 16:38:59 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 366GYVLc010307; Thu, 6 Jul 2023 16:38:58 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2176.outbound.protection.outlook.com [104.47.56.176]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rjak79pue-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Jul 2023 16:38:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CLEJk6i25N0Ogi+fPMhN6rttGNLO8Mxw31iuZJH80VfhBoqCeMpD/xF0mZ3PKsyu0Wuqc14UyOpkd/gTBPAFclU15ficqWbdmoxigs8ckx1ET7XRTPyXURgb/3j4ACzrXRwbuPszbwB8dVqgeXHRTwOsMGb3HpoXT0ZvZWiy3F8mqT7/BXJNiwZAxIjqcuXGvvi0g0zMbEGQxidZ8Ie3I7P38nhDjkRLio5X7BqvIE7X7y7QTWUvQxavdGw/Y2md/BJyPIB+q2zd3btViYvw0MnMNSrX9j329HCPx3OqHYBA2HuDAljAYWfXue1cnUI5C7zDGW2qDQ8alaZb0+V6tA== 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=eKIMZ8ZrypitCIbtsj/aGplEfX/DSuTSYvIeZckxPqk=; b=ZVSYQoYbqWl1V7scC1iCMWXc3IcODr740/kuQehNdqnLmRIbNJ6IQ3Qhkxxo0sU8MM26PiJshFbgr7aUJZ1vfBRUvXMsFME+E6GiaMVeh4jn60s3nUGFCQskM4n/jxhPzPfaJ68s4xuSgVg4Cp53wHKw8/gn0h+S0NnZJ1hebEtf7vx6Hd1MAokVblim2mvMIHpS0+uuPJgs7OL/GRC201aMRQf+lFLWtAm5mB8zKXkCNQMUMPp+6bq18zB1EaqEBEv52fwWCfLubf2+yolU1lOakUkLnf4fZc5pBO0GNoLqa51rdqJ9ZYZAB0PJ6nOTXh9Ai/UVFi73Igo7pMa6rg== 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=eKIMZ8ZrypitCIbtsj/aGplEfX/DSuTSYvIeZckxPqk=; b=rl7QKATBt5aZK9pnKY2gBeRgieF+6cUVz21t48gexfrRMIcPsb60dfmcdzNh5Q8InECjRZsAb+bqfrjPcO+cZlwRCxmergFy64spgolxpPX54SgqP95+9wfsfM+Nzy1t1v3vvQXkZ3hpySIg29bMCoC8vVg07cK0oZQGAWmuRu4= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by CH0PR10MB4955.namprd10.prod.outlook.com (2603:10b6:610:c2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.24; Thu, 6 Jul 2023 16:38:53 +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.6565.019; Thu, 6 Jul 2023 16:38:53 +0000 From: Sidhartha Kumar <sidhartha.kumar@oracle.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, willy@infradead.org, zhangpeng362@huawei.com, Sidhartha Kumar <sidhartha.kumar@oracle.com> Subject: [PATCH v3 1/4] mm/memory: convert do_page_mkwrite() to use folios Date: Thu, 6 Jul 2023 09:38:44 -0700 Message-ID: <20230706163847.403202-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.41.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY3PR03CA0007.namprd03.prod.outlook.com (2603:10b6:a03:39a::12) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|CH0PR10MB4955:EE_ X-MS-Office365-Filtering-Correlation-Id: d684c700-ade0-4b7f-3c43-08db7e3f7c21 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BleejqJnXvtp3hj/oketlswziQjQSr/mFZ2gj8kWeW8RhPWJs92c6G9i1+NfteA849KLR5ziQE3Khc58ocX7sUbWp9Ai8F/KF2GI0jV1TY/wWXgsE0o8rlBrHWXOj95zGYgGlY6abdmzpBEUM4+DlLUZWVwy14JwbrT7L8kEtyo7bJfvHJ5Z0Jj2NBriQOiYkzNzuZrF5jSj9g0HhtAIB8rp+owKFIOXKZ2UsZvNUx4HRhuv1BTAQgGgMPp7U6HebpIRJsbhih34pLo5bCPqah7k2n8kQQeM158ZFdaHTyXG15w11Zz+WFO/vabrOsD67d3AoIBw2OXvCVQaxtO/PN4NXf062EBH9wIoqwl3oRuWUufrXWRib9p211pszTpltcs3QfU0NUZmRZidTyuaTSzpHNoywRo1eVHv3MRF+ctFGUxZ90GSqEgaAojc0S+YPtNysUeMYvMudqdTQkBpDbrvywbQABSkoBK78zHGeVBH/BFGyY+WEyEij+l7RLd0A5wPk5z2tA2Mv7/qob+1zioDtZySQg4dPtLuLJmLwDFmgFcsdqqob/rNUw/1et5s 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)(136003)(39860400002)(396003)(346002)(376002)(366004)(451199021)(5660300002)(44832011)(66476007)(66556008)(66946007)(38100700002)(4326008)(41300700001)(8936002)(316002)(8676002)(86362001)(36756003)(2906002)(6666004)(6486002)(83380400001)(107886003)(6506007)(1076003)(186003)(6512007)(2616005)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSp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iWWVEau/zGu2iEOcfVhw9nWboSfU5L8H5EebWvK5It9+7XfZBLMtPvtcs5Ei1FU/WYw7muglQNyz3sPHv/6zVHY4qX/Bw5mi/rJDsz3B5C4BzKcGtmPWPyWF6IVz+aIIM7fpLCnj5jb/gTurJn78wbpUvHCq/SQY8/j8dVRxg5WsIELRpPE4jMe6SQe3stwyCTX4IblvcFPW4z+MS8VLxzAgefZqNx7YQXXjB890t09IpfYsyCelChHZ3PvfBPlYMMskSba0zfjxH5Y06ruiitUqfjN2QXaJfonU2MwJunM1xfvBgEVyCobbIRVE/EIBx7JeFFg+o3MgLqYXkFNFA0PWJhaw/eiX4YaNg7cPcQ8o70An+7OaYIaddKLVS0FAisiu7fuKQp/Gx5CCQq68tMwSVwWfC+Vsai6xLfriaKBOp+O2657LMHbyehDCXzziWNd+tNLEST0OHbbqEjjKK/NEJnnRPOyI60/HspiN6iGA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d684c700-ade0-4b7f-3c43-08db7e3f7c21 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 16:38:53.7378 (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: ysyUiLLLrxm7euWYT/q5+oNxMAhD30vbgMRtudUVhpHHRYW2nNoCEjKaZrWMNy2u03IHmWVp1sXorNCdXTxas+2eIlaC/HOhFPNB+0n/zPw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB4955 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-07-06_11,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 spamscore=0 mlxscore=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060150 X-Proofpoint-GUID: 7_DHzLf13NVVQ-V6wrw5rQELKiThzpPx X-Proofpoint-ORIG-GUID: 7_DHzLf13NVVQ-V6wrw5rQELKiThzpPx X-Rspamd-Queue-Id: 2CAF62000B X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: odz8cfp3yxhq7i3sut9rxouhuh5on3by X-HE-Tag: 1688661550-399204 X-HE-Meta: U2FsdGVkX1+HYXYyH3ubltEpBRHSMCgQ51TC7boHUCJlZK6PG16/BAWYBMrilri9j+h9zdcbGbxj40Fqcz+TJKCc2AQa8iwDELrcpOzuPKmhYUcV49iDUy2rSN6HmE+E9vZpMRbMiG6ioQtZtG5hZ3lGT454cxeW+zSmBq3YzibROLvaDLaLz5pxny1AMByPs7bJvn7V8GMm5B5TIAan5RfqIHvWneZV4Ka+4ofIfqkkNgfisuqBb1U9jfodFPpLJM5avR6mfFMef3w/7KADmXOppb6hVVwEDg+MsMOkaSCtg+ne6ljnMvQaFLBxsW9zZGKayOEAAirwj3wPx7d6bcY6y4dYb+Rsd7rA+mvQ9VyaTtelu7kMd7Z91sOf3kEDcHayi2rj5pNzc8LKdFp5TUsAJoLhTvGTsJGAhJWGnwp+tMWwNHUQAH6mzpCTnIn8rKpm/LvjQIxgDcS6pEd/hAsZ/igeqqoFfZmOEz6BQydoaaqjXlCY+VFIoy+0xQH7u7urW6/wzolhUCcuPpOFBv7RtqaubVPQtglIkj+DphGrut4GVc2d+Bo9oUM/ttnhQNt5zBWxifLnLQ1i4OGw0okeXjWoh97U6BW2fPLnTzlRtdcaChIgyzBq/xLY+xseg8wtdNUtTSqGbNc5PxJw+em4aGFtqCSvxvwc2TZntvUoWhx6DuWLu3dgl6vyzeH4GUu9AzrATy7QBA/FXYS3UlIbRhaP7M2I8vN0DPyKg8uqdr94siN8AVU/z1DYwD1+s8kOSNgHkZSiNhPwdwvHQZZmWjktiVsWldUffKM8gYSRxw0ldaanZw8DOJO2lYrAZLvRDUuTF6kpTqhXiJYBtvt3HX0/hPw8g1HYuN4DbnFI/JI30h3vCpCy+7D8SadXL8z5MYtT1BarMmirZt5rFfW6LVW8kfhaYnWxrARiveL3GA9xFx+XFjNLZqTRd7aia7Ou7tgE7PyEdg21PGS GXwqXrkf s2bxsI93htd4Aho8KMjd4vQI3vqrnDnmZAyfOS/BTm1T6PvCP2m14dlbRLhqSbVkSyer39H65+QDP86Wq8n+IKIEhH9ZO7FHK//8s9xbPUoLczrvkLOmHc4qs0NFLIwNbGsImrdM/NweRVcylZVn1FK5eb92oY/sNya3pgQg0+nX2xQW8D+dQ5oim6bodsxe+16bLDvUOaOyViI0qAOQTzeQkKMQN2a36gNva5v5tXaJC89+2uErTTKVpr+0bg+WTpkz0yaDkMq3PG1T0P2SX337D7yF0j05b36NciuyiSyG9gNE9dwKOe+41vlGJ9frfdB1CjJqweOJ9trXVNRXIZpZJpYrb9wByrIa9/3w+fpkRbR0b/fpnw+g5Sc3baLiBoyaTNa6QwB5IGeTkRtuMm4CBeEYlK1fgGITwsn+M7HM1vNuumFM6FRH9V0Gd3bq7qs+kUSDuL1UGvJt5YzzU1fD+ciMxMBgFmpU3 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: <linux-mm.kvack.org> |
Series |
[v3,1/4] mm/memory: convert do_page_mkwrite() to use folios
|
expand
|
On 2023/7/7 0:38, Sidhartha Kumar wrote: > Saves one implicit call to compound_head(); > > Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> > Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: ZhangPeng<zhangpeng362@huawei.com>
diff --git a/mm/memory.c b/mm/memory.c index cf4ae87b15639..1736a130fa829 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2935,7 +2935,7 @@ static gfp_t __get_fault_gfp_mask(struct vm_area_struct *vma) static vm_fault_t do_page_mkwrite(struct vm_fault *vmf) { vm_fault_t ret; - struct page *page = vmf->page; + struct folio *folio = page_folio(vmf->page); unsigned int old_flags = vmf->flags; vmf->flags = FAULT_FLAG_WRITE|FAULT_FLAG_MKWRITE; @@ -2950,14 +2950,14 @@ static vm_fault_t do_page_mkwrite(struct vm_fault *vmf) if (unlikely(ret & (VM_FAULT_ERROR | VM_FAULT_NOPAGE))) return ret; if (unlikely(!(ret & VM_FAULT_LOCKED))) { - lock_page(page); - if (!page->mapping) { - unlock_page(page); + folio_lock(folio); + if (!folio->mapping) { + folio_unlock(folio); return 0; /* retry */ } ret |= VM_FAULT_LOCKED; } else - VM_BUG_ON_PAGE(!PageLocked(page), page); + VM_BUG_ON_FOLIO(!folio_test_locked(folio), folio); return ret; }