Message ID | 20230705194335.273790-2-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 55C2FC0015E for <linux-mm@archiver.kernel.org>; Wed, 5 Jul 2023 19:44:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1097F8D0003; Wed, 5 Jul 2023 15:44:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B7A78D0001; Wed, 5 Jul 2023 15:44:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E4BE68D0003; Wed, 5 Jul 2023 15:44:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id D59288D0001 for <linux-mm@kvack.org>; Wed, 5 Jul 2023 15:44:08 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 63C9EA04E9 for <linux-mm@kvack.org>; Wed, 5 Jul 2023 19:44:08 +0000 (UTC) X-FDA: 80978584176.20.F63500F Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf13.hostedemail.com (Postfix) with ESMTP id ECF3C2001F for <linux-mm@kvack.org>; Wed, 5 Jul 2023 19:44:04 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=bhgIPPYR; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=i3MucXkz; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf13.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688586245; 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:in-reply-to:references:references:dkim-signature; bh=LDBwrKukA1W27s7eOaMHDH+8erEXbwg6C6gQbwSy+P4=; b=AWFgcP8QWnf32yc6MAnbaopgWxmF/BjdoA7QiFlyJ5XWAchLDdVdGovLrpxq6wy/ksY5lZ uxNNt8nx3ZGqXArWHvSbZ0NIj+uBxyzPGurE3Wi+iICwk9enmaDuPY/3RgFd+fy5BGrdlc HjV5BZmagkn6BMUP7OzLVqVH4oI/MdE= ARC-Authentication-Results: i=2; imf13.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=bhgIPPYR; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=i3MucXkz; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf13.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1688586245; a=rsa-sha256; cv=pass; b=sAv6YWdtCRvCL4ZB93zNYdKCq7fvS5Tm+SKwnaDZAWp6v4aLVYjaqXqC77TUzAneWcxnN4 DCz97yzcvJg14bID7jqsb7jQg45SVFE6ygmolznqQu1zhNEgrBeP+5Cqfao3BtZ6UcFPIY jrhQJNDNdCO2YVJW2vxyIybbJXEGFDA= 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 365IXhUR022240; Wed, 5 Jul 2023 19:43:57 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-2023-03-30; bh=LDBwrKukA1W27s7eOaMHDH+8erEXbwg6C6gQbwSy+P4=; b=bhgIPPYRK10fo5YtD10ROB3CrvG71mMGxSZ30PYwAc/kSXVDUElFYZzPC/kx0vrW/p73 vCJbVphj3VvBdVU366TQwizkraM2jYnwcZTzDjCNEX0VjhUfOSjUeU+fOcs9Vk4rAgHS Te9UJPF7lqbfv3P4y1ZROyX7LXwvoCnrtDLpOISK6hadYyjegEl4+K/kepD1wI6x024E 0G0HYFNOD9yfz7HqXMR/gir9rdu9sxnQ+yApktwue9bvePR6UPrmsER4Scln1iP1irWi /RogqzH9FGuuJqwbQjnaKerupqUPFnf9Cy/F9m1yAlOuAnNoEosoxlgyCkaiTOwwWDuv eQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rjc6cqbk7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 19:43:57 +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 365Ibtu7007290; Wed, 5 Jul 2023 19:43:56 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2045.outbound.protection.outlook.com [104.47.73.45]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rjakc1rvd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 19:43:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SsJ/hrQimeyRZJNPgJgtMx4LXDaXayXIrmlAHaw/FLXmBSyCFUNWh786x6gB9SeFT/RIA35P6ZzM93GETrvN9gOrcuz3IR/7nbY15llvAe71U7DNH2xKgCjZYDAa40g2PjALgyKT4R2eRZDU0r2FwEyX0YQ3/z3H2B87VyBKRhEeSGNP5nDyn8m1F44espcOV0B7s4ai/J5aO4ji9MZLSqjYs0MhtGYATBp22HxgGDuDYyBe9Eeg7go5iBCd3Qf9GgV7PO86WG2ODi8BWg9Y9xnyEx9PzbogHVA6B3mJsXq0KrEh7uAjV5neuyMkFWO6KNRvKa6xt+VEXpaLAaUCAA== 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=LDBwrKukA1W27s7eOaMHDH+8erEXbwg6C6gQbwSy+P4=; b=RurhXM21TtBlnB9f3HU6PYNoJPc6IKWw4AJUlE9zQEYTKqs1UgwlygVfDzT3haDOSraFL1Ol8YvVq5NarN8RraGeH0tYEjYzQVhpoDN0GAMZPlX70A/fPtLN6u6C2AgEvPwgcH/z9h9Eab+dQK59U6l0Zv/UxF4a6wukYwg5r/C5ooVEToWZ5wpqBgEI1WzZmUx+NZdHwtpsJZ7yEWLRPM88NsJPH5boH9Cso16U42FiL8WmrBZXqpXxMCeEQAUhxkG1LxdwFC7ZUSioDxYqkRMTVwsAGKTbgPlcB8UgEX7mrctUXx5aEOdossa4a2yki/a2bkyOsPomPzc4Fqtuxg== 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=LDBwrKukA1W27s7eOaMHDH+8erEXbwg6C6gQbwSy+P4=; b=i3MucXkzYyDrwh0ISJ1VGP9V3GiTrFwNBSRtHUZUEnIypPIG7Wo//LWM37nDdAg3QXWp5AHUHuY3YLi9iCr/lZMwnRbCsiEYEcQf3zdbNgJJeEBcVQkknvGKUN7+oEa1/BGaf4kvNdqu42nKJMtTk/k9It4zH6CtKz92uJX50bE= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by CY5PR10MB5914.namprd10.prod.outlook.com (2603:10b6:930:2e::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 19:43:54 +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.016; Wed, 5 Jul 2023 19:43:54 +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, Sidhartha Kumar <sidhartha.kumar@oracle.com> Subject: [PATCH v2 2/4] mm/memory: convert wp_page_shared() to use folios Date: Wed, 5 Jul 2023 12:43:33 -0700 Message-ID: <20230705194335.273790-2-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230705194335.273790-1-sidhartha.kumar@oracle.com> References: <20230705194335.273790-1-sidhartha.kumar@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0172.namprd05.prod.outlook.com (2603:10b6:a03:339::27) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|CY5PR10MB5914:EE_ X-MS-Office365-Filtering-Correlation-Id: bad443fc-e510-4d10-d13c-08db7d902a52 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +gkX63AxXbKqBDK3TzYKFiXmbFxica8FqxN1axuLAht1jXk2ODR1nDRuln0dQPmXe/uIDiLmGf11Mc6R8woucMA3VP7MNtAsevW/NTAAwCmLoWEcRXOJhATht7cWt36xpuN7CleLW7SdgJrT1lSiOTrzGjXNjsTpbHDyLzhQGFTiBF3tf3NPket0nHxRcK3NmBgQElc4AVGY6HY+47wymCjrMdrGdjPmks9Qh/BbSSn61ZTt4/PxgfjocFyYFptj+mvtUTWpzo4F2BCOxxPT8sR7zuuDRkIVHGeW2edi3t0FQ2ZP4aefrLnzqWkhjtTBx0zXy3fC9zs+WNY/NcN+IpZEbb/DeZS+CdWglGjZLTrym2VF7pBn+kemm/rhvK8V3AwG758+/qUDVViBbjzY1rvp1DYatkQQo6cZJtvLUdEag+/19kts6bjwaE12qy78hojQHtSfsSQj1vHmeTkN2LZMzsX46KuYibcURKrxVgmyhKj/l06xdkB//ZtNWOogoVz/CtsP6SNNQZoLjf9rlkHxFALl9vk3I8nUZz2nCtIGz6zvnWCnGZJlVUb2Do36 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)(396003)(376002)(136003)(346002)(366004)(39860400002)(451199021)(2616005)(2906002)(83380400001)(38100700002)(36756003)(86362001)(6666004)(107886003)(5660300002)(316002)(1076003)(6506007)(41300700001)(6486002)(4326008)(8936002)(8676002)(66556008)(66946007)(66476007)(6512007)(44832011)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w4UCdVYpNMUSDpbpD1kdB2EBU7rzZkO8sd6i6PEIMWPZkxkJ2hXfPB54ABuLqO44M46blKMr3dqurILkcU1EUfKP/ZBuYQaCvPk85tUbP6wVPGGPG5bKTZY5Yk6zRhRsrzicLMu9Wdvuv8ZzI3qKllJI96vYmVmOGfIioHfzFw/anIVlPb2MSWIFR4xsnD4uR7nKoeVfbisnQo3MoGuRF3SQ9co2GRCQs44+ClfjYRosSHzPsFWOzWQc7/0aVAi787C2eFzLMng2RjqZjmbRWKIR4JLCVB7iQLqUp6Hmbk8ha2DRrdOObEfQCsRf9fGLJZ/Q0iHtDzP9ddHwa4MCM1+mOQnBjliH0BOl5Xg2cHa/5dVwFLOU/zX+ydKvGMf4nzpwIU0HRWZsZE4f6T00oji4919u7XZgGHyDRJzfpmK2JUDFkgrmQercu37ZnoqDaptKCb6ZYLMEL1M15TsrbBGdSgnevUltygVMToSWDVPcYKbctUVNh6gtPM6jUUH4KGK8wjPl8Ck0HGohCq9an6Rqe5x/Se1f3E X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: bad443fc-e510-4d10-d13c-08db7d902a52 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 19:43:54.3643 (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: SxjNFEcEwLGVLWayNnil2kseefEOWWfKFgRhNLsZZQ9J3f8hjG00k+cG6e3u3NymfyRg7a9EeALfHa8sIqf0lU7wk4NCXOtLqwJccD+Z3Us= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5914 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-05_10,2023-07-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 spamscore=0 mlxscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050179 X-Proofpoint-GUID: V2fimosQar6boSLQqZVsYItvz9w4-VGG X-Proofpoint-ORIG-GUID: V2fimosQar6boSLQqZVsYItvz9w4-VGG X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: ECF3C2001F X-Stat-Signature: qwd6e5i9r9446kzamsaw5c3bdqbwk5ug X-HE-Tag: 1688586244-33226 X-HE-Meta: U2FsdGVkX18yHV8k0yhI57gk0b8bu3osDr0DgN0Ae0ehsG5kT95moDxagSNEIBCAR1JsJeA0xGQbRBkhPZI51ffJI5m8BssNd+N200Vc+QYCAui+zVGidPclsRttaCuZUxym6x2CD+2MttgA2sZZJfIno+YXvzBtD+r+KQ1p9RkVs9oseiSyQf/Ir9/q3l43xQOhp+3pPOCEK0+REcJ4lN95FyGRQgeskwP9pEb2wOd6+7l4Pup6ndZw4FBC93wsTWI4w4Loxh2730EQj+6omKVD3tlTPDuMkp2j4uLgj2gfBOXsDbHKAveeScJgj97vyWQrLLR1lnxRQ33eLBibxoRF/OJ7QtkTB2jByedwQ7lUXiBWoF23Cdde3/N9c16F+h7zHbkFbuJUScxvmfkEz2V5ZkGc7RgIOV06o7ZbjCQ/kXRkhSmhpN9x+P4BrKifC1gnGM16reh7HLjG36ufsUua6MTIIb15T8sr1zLBAU8zVwp92dXvPbY5aocq2OIpTYpNEVsBtKnEBrFu2yJD+ISYmb79S/UI4v0/lETG2u8l+4i0hMDC4XNvByb1xPgqu9+bEsS7H5w+lJ2CCSTX90yCsKi6kSMr5h/xp6f6epptMHfPXnKCjDtg66OB2OF0K//F0WGjsOcxxVLzPD4biCxprVjsRAiC9rdm+TIAJyLSe31gBTYeXKiRR3OjJFHqdf+a8i5v7eA2nFk3PTV+FmwBjqUGnrU6kXywamxMfiFxsrD7eOu9ohDrh88OpHPVyghZOa/UwB95p5m7ImHeqqqqLdthgvg7tqzYtAEgQWNcnabYpHZ0JkMXSuroitrdwH1U+2SX3VvyIZMaKMRi/+zHTl3B1P90GxgwJ1N1oo9HuusJDIicncnXXw2YaiBDPvLekhhyDfPSsZmxPMy+mxgmChCRJXYmlXRwewj4cSrX7/ASBqKsEggG49xTU/d/Iws+55smMzuoLJX0fYo MgPDZwvN zCy176s019oxPhSQuE2qD9bnZrmZ2T2BMN5ScH1QpJ7c2pp68PHFNd1yUids9JYzUfw/elPDejYnIjHNbcPdLXJjhE/pxL6uGsrAOTuHocH+Uin1Xal2fmrb2+D2ejSAjHPhLRSHtqj7GXqd2IpKzY0bBFAQX8qgNx48NyuGmz1JFAThST25CJmayLtAOziL6D/UKUWLdyIl5iEaIcrQJARrTFi4Pv6wY7okDbWxkxJtW8OL9RASxYee6MXKN3zgMYXbGeOeO7ddpvgbv6qRMMYUlRIo4V7ZlA6b0NZTKHc96RN+XniFzx48pbfbJddLtzr8EBOeea96HLq+Q8lfj8ZK05KXMIICSFE8VtYPas26eRCvlO0XxnHsQGLne2QDCn5MWwkx0uoZpImUGAtv/xI3/e9MG4M9Jb+ua6Ibq0LBiszA= 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 |
[v2,1/4] mm/memory: convert do_page_mkwrite() to use folios
|
expand
|
On Wed, Jul 05, 2023 at 12:43:33PM -0700, Sidhartha Kumar wrote: > @@ -3375,7 +3375,7 @@ static vm_fault_t do_wp_page(struct vm_fault *vmf) > */ > if (!vmf->page) > return wp_pfn_shared(vmf); > - return wp_page_shared(vmf); > + return wp_page_shared(vmf, page_folio(vmf->page)); > } > > if (vmf->page) I was actually hoping you'd move: if (vmf->page) folio = page_folio(vmf->page); up to immediately after the call to vm_normal_page(), and avoid even this call to page_folio().
diff --git a/mm/memory.c b/mm/memory.c index e73245b791a7a..fba33fb55a010 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3281,13 +3281,13 @@ static vm_fault_t wp_pfn_shared(struct vm_fault *vmf) return 0; } -static vm_fault_t wp_page_shared(struct vm_fault *vmf) +static vm_fault_t wp_page_shared(struct vm_fault *vmf, struct folio *folio) __releases(vmf->ptl) { struct vm_area_struct *vma = vmf->vma; vm_fault_t ret = 0; - get_page(vmf->page); + folio_get(folio); if (vma->vm_ops && vma->vm_ops->page_mkwrite) { vm_fault_t tmp; @@ -3296,21 +3296,21 @@ static vm_fault_t wp_page_shared(struct vm_fault *vmf) tmp = do_page_mkwrite(vmf); if (unlikely(!tmp || (tmp & (VM_FAULT_ERROR | VM_FAULT_NOPAGE)))) { - put_page(vmf->page); + folio_put(folio); return tmp; } tmp = finish_mkwrite_fault(vmf); if (unlikely(tmp & (VM_FAULT_ERROR | VM_FAULT_NOPAGE))) { - unlock_page(vmf->page); - put_page(vmf->page); + folio_unlock(folio); + folio_put(folio); return tmp; } } else { wp_page_reuse(vmf); - lock_page(vmf->page); + folio_lock(folio); } ret |= fault_dirty_shared_page(vmf); - put_page(vmf->page); + folio_put(folio); return ret; } @@ -3375,7 +3375,7 @@ static vm_fault_t do_wp_page(struct vm_fault *vmf) */ if (!vmf->page) return wp_pfn_shared(vmf); - return wp_page_shared(vmf); + return wp_page_shared(vmf, page_folio(vmf->page)); } if (vmf->page)
Saves five implicit calls to compound_head(). Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> --- v2: - change function definition to pass in a folio mm/memory.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)