Message ID | 20230705194335.273790-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 9228DEB64DA for <linux-mm@archiver.kernel.org>; Wed, 5 Jul 2023 19:44:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B40158D0002; Wed, 5 Jul 2023 15:44:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AF0968D0001; Wed, 5 Jul 2023 15:44:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 942FB8D0002; Wed, 5 Jul 2023 15:44:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 80E0D8D0001 for <linux-mm@kvack.org>; Wed, 5 Jul 2023 15:44:08 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 1D833A0416 for <linux-mm@kvack.org>; Wed, 5 Jul 2023 19:44:08 +0000 (UTC) X-FDA: 80978584176.23.2D64C1E Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf06.hostedemail.com (Postfix) with ESMTP id BFC1C18001A for <linux-mm@kvack.org>; Wed, 5 Jul 2023 19:44:04 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b="FnAs+C/d"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=cS7Vf+G9; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf06.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.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: references:dkim-signature; bh=kw6BRq5S7nlCZ1N4MuCx5rTYDaTeRJQjFn2jRhBUINE=; b=LQ3gkZTtqTwLENPbMJ0Q+aDv3x0V6i0+roIIVfRQysuEU5idw4H+IVClyMCTMWLJlnM/MG DJlWCUxOPBhbO+DssgQwbjcfQ0qz+kzKcNOE+IPxHqqzEft5peDUd9jKKeAatYIQCNcn5k a5HUH5KAF4xwplP33u6mXEPnj1DYRMc= ARC-Authentication-Results: i=2; imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b="FnAs+C/d"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=cS7Vf+G9; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf06.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.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=MZwaZiWQV14BZsiLN/TwslDE6zPqg5HTl0fTSZHgErFuS2vxvqcPZ+qqVAe53xbUFS485l gZDWXr13fDS2ssVYrIaP+TWvxlSYQcrDLVYk45gEAotGcS3TYKoBqwgie5IUZ6CggCBeFT yJ0BbH2zKDTuaevRbx7egyvbYR938ec= 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 365JU9NC014840; Wed, 5 Jul 2023 19:43:51 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=kw6BRq5S7nlCZ1N4MuCx5rTYDaTeRJQjFn2jRhBUINE=; b=FnAs+C/daCUDtRIOzSaz+1aF1aXr+T06lqo+4q1AmhOzQbQa1VmloZWNZ17sFqS1961h I4ZgJg0F1IWXHBPJAkOQmlwvTS5SkgBEOTvF8ISwUrJ8BIBlNIZyQGxGn9cAPrK7yZYC NjGb+zUnrDeoOVlpe3uiobZVEPiqSUDw54+l8wCF3EdBTcCkw7yt29+Sn06YPL6+Y432 3IY60fbqWQ+i2Lut6iEVFhRbLcRG+YYfkWQS69oZuYz4OSjugK8GKtvBbK+UYD6hQpNP tORrVvKxJ3dxkln3QewxEmzQjuPsxidkPdmFttN+P8+kkCBQ7Aqw/0p+JU7TKIwRfM+i lg== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rneqqr11u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 19:43:51 +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 365Imt0k033353; Wed, 5 Jul 2023 19:43:50 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2041.outbound.protection.outlook.com [104.47.73.41]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rjak69932-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 19:43:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DCGVbWULdmiGagyAK5LS5SZ8yjnw5R0xjHQ6EFF1LFNC5arH0in90I5tA3fQK9oEZt+n/4jXsPtnaKfr/SmlP5RP+QIRNWA4M/Ots+Qb9OMph49zGBrJKKBlwDh4nFoI3FhdVzMNSLgXz1MtkV/bwVt8UJCB1ImwLtQFa/fBCrkw6WcKPHFISnNN0RVQXsMD6AhgdGwqn/fgGAEosAbayGcG3PGpMMjKBsqm4pGq0QBvd2/aH9pgH0aUH5A1SQiRZJv4ABFFoHupc1NnkCY92J0ska4RLWqBXLpw3o1uRaWe7xucOydr5+t/ucEW1N0ciojtd076rbakH2Nb+1yloQ== 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=kw6BRq5S7nlCZ1N4MuCx5rTYDaTeRJQjFn2jRhBUINE=; b=Ia/sF2Wr9mY/vNz5ES26ce7rKe4XGUSFdaq9n1QMjFTzFp+/Vd7I5SlkC7FY/cg8vNjfpv0y6mCpd4fRF6KRTBja/zkOE/7m41VCRtiS3t+mZZ6CUEuPzhymg4vxOF6Ja8oqphktQ04OimqUA9wz1j+krMwszTy4ADXsysch3Hjyxa72Oh2iGv3iu7xrZHIzCAXsJobB07PRAG389xiNdprI53ZUIqsu23eZuQ+dC9+36i6vNYn2l5J2e+VZQHJnAZOXUnwESrdDpZkB+r5quHKYrhCAOjtMda+zVbU2LMXkmeaNaK4+VxXr/YFPvMWbBoGhWkuYJu1lk4m0Kzjkmw== 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=kw6BRq5S7nlCZ1N4MuCx5rTYDaTeRJQjFn2jRhBUINE=; b=cS7Vf+G9bPQogDNT4BhkuqojsnaNZZKQh2O53Bb0JagXHkrMb/5BLrjJyFehxqmVQtLmU0jqdjsOnhsK4WGsCqCb/q3/sRluX5p0AIR2yz5BxZq3+KWiWGfCEc+WSYiuiPjucGPWy7BTyNAQ/WHNCwNspuUa9k7G9fA3SyUZYA0= 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:48 +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:48 +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 1/4] mm/memory: convert do_page_mkwrite() to use folios Date: Wed, 5 Jul 2023 12:43:32 -0700 Message-ID: <20230705194335.273790-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.41.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR04CA0008.namprd04.prod.outlook.com (2603:10b6:a03:40::21) 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: 1dceceec-79a3-4004-4ca7-08db7d9026d7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1T+ofY85lq4nzn9CRxUa95RcSdNLzSXAS6tPJCUFuL4kLd/zdKd2TODtovL/Fnb94oS/qw0V4C4GX2W6hisPQ/sx2nLLjfJ6KyoytlnMuT2rAZGU7FPSLwqsfIjXGqa5uz/pfe8hYEKBChC4Iva0A9D+xU+GYPLj8VDP97l+DQ3EYucpUKu86oL6/+vZ80ZU5BitlY94lrjSU8a3NuWwOgL9DndkSrrXKAjqWUEw/8DtfLBEsi+aCLpfyaeC+LxIfwISygkidtWpfWmfpX7WUVPBLuHGq3PUwBj9WNm+qydRPH+w/1Osdw3k/IY3B+sH9BcA+rrZO8QtCropTrLIKJlCmHrQ93SDd21Kb6TEQ5RfMfGVwC8Svl9TaSQ643sDyNNW/riU1pWa0yWdqUYUJxQHvU5y9sOB/ICpjV0DZALzuUcCFyfnVp5hlac3Jrkko0aCr7502vrJSa3pIqjzfViz4Qctq7Umkk+/T7YVErUvA/1WVYOaVQx3gjCNPH+MKQHpk9dSH/j5LFreH7yWd3Grg0YYVKIy4affAWGVImNgzPSlYVVLWDpVpCMKpyNL 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)(478600001)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-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8atYOVdcNKUSonmSGaXEBTkWVSoSKL3XeyI4ych3kDKqlrrDFVX6bWFa9ybtdno7eyNwmCT3n9wtlqrD8LfSwqMNC2aP6hmOfO+bJ2SV1vTd6Kj6ThanODyTuQy2KEKFM4YkI7uLTFEjv5nJuHxBsmVDwQeu+15gtBhOcNGSClgOlcx/148XvqH9JcCkp7Hqy+tRVuNRNnY626oykjJuyoqPj2TPtnHjuWFBckR2VAGo7xHNETfAgx28WHQmI9oUiVxO2KQq2uC+2BoIqBkmozTyH04S0WJ08E4wgHFg9jnazMOwaPAur5GcmY8RGlWN8/9LrsmAXW6WqGotrvmR1FIBpR/3XHgx5ZvKol64xEszchrD1d02DhNeDAarj4nzT9DEJk0Slf/nq7ykxMZ6NTLfCtVq0cubGiphE7cF+1u/A9VLcULU5dn8PujdTjwib3wIVUCMGwIeNGBy54Q5rGahy2Y2CxWEE3RxvBK X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1dceceec-79a3-4004-4ca7-08db7d9026d7 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:48.5568 (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: jb4KVrnhj49G36XmMfWGBsL+bxqwWvuU2SbCXKgDInj5gafsfJAD6YYBeFCKmy0SkwtrKKEEXaxobwAGyXOtPAF1JBsQ3ukIwTW74agRHZA= 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 adultscore=0 bulkscore=0 suspectscore=0 malwarescore=0 phishscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050179 X-Proofpoint-GUID: mG3kDwMm1HkKk6TsnT2Lt3wO_x3aiWc0 X-Proofpoint-ORIG-GUID: mG3kDwMm1HkKk6TsnT2Lt3wO_x3aiWc0 X-Rspam-User: X-Stat-Signature: jdyi8xghabhgtyug3bbitjgo6e5yy74n X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: BFC1C18001A X-HE-Tag: 1688586244-46809 X-HE-Meta: U2FsdGVkX1/8+n53GpK4Fafupvg4c9smvHchCa791INRVLNDTmpT1EHikMBypdsZVfGhyUH3zBfGPMNyRUbe53pmjmObRoybKF+GxBzalobP/1F8iQlw3D/CMRb+X1XYqhzpf3p88OmFqDXin8y2pX5hdnQ4tQoYX1B6GApliYB4a2LfTnD4tYXnK8e73/WOIsYM2qafwekwk8J/bHh3g8YkGyemlPKNSy38PSckjSy1UWWwTR3B9BAL7MsAg9xzrhBhoXHR1pOuWPiN2oW5lUU+NGz2Tzbc1rpzLaCGaOvYRWvJgRYD88WIvu+dsZYAqGpDodr7S/UwckeHu2smQA71Y5NuFfWZuufZsEewkED2q2zCarwJOnIxwDNDLrpnNDACoT0nmKy30e8e85phD2hXvsXeZIjEYU9U1Xj5YNTT3GQfL4GiPVN9vahKIvJ7laaYrUiWJUIqRe4YphgP64m/xVk5u+RIQFolgEd9brU+0mDCrZ795HlzGhUdLCwcEjXvPwWE1TsezNg429a/p1+WFN3GaL3a/XSujOAYZ6lJv/+5mO2afzczOZXAY23PsbD+C1IvP2jzZPpQGOpJBLivhqWG2nLniWg1w+iHprlpaV7XpRXMu/7yjUQdI0//OOX3fpAI4Y/YNYeduYzhSoEufyzu5++l94bBESSfLEofS0rqwu3kwsiJNG6nAIBXxgP7gWh+idmaip9EHIsF70Feh4nAifLmI8S5rOU+8ghwV3/dk3pnn2D7S5W2rD+KnFLFJ/cGSFIo6jIxYuIlTbxQkpvzl9pOAReTD/v6ywnN3kJ9sAObGrhoJZ6vvZ/ORtEmKSqfgFF7f6rMxxw84OheYKMn6LqzH6ggZ6LItka7SXvO4bDFoxUOfpaTz6rXZIVPiqvk3r9jk8Pp8UNpxInB01eDZuNYl3h3sAGXh9k3d/bpq0YSbtpDWIvkNKNBnu5yFufQe5xD1QZqcB7 S1XyyBdm C0yjldvNYJmWMfe3pYi8VXUXgOkE0HHC62UCZxyjRbC4e6jYUV4sQhmr2UskzzwYGy6oVKmODuo3vnXiB8z7ihZxzxxC4ImwLDJOaUbLiRNMRZYRgCe+Lvrw49Z7DWAZu4/J9WvePcAqx0lWB8aWRCPuvMEYaoudes9EuofM/2gPleI4+SHMpy75o3QC396xZgcEG1wNJWxHhqFy+ukfdUGhAhM7zTA+fhyKgVvwgcUnbsfxqPM5cyPOE3B4XySkclDY56wUWicnPLOsWpTJg9Ie1SVTWgFafyialC6s7yy0AJV7KggP1x9tVGlyGzpmq/XJ+Pwgfm3uWaUFsVSifn0DKV3oIuQsDgPTj1uNJcv5tgCBWFNeAG0yzWyt0djN5+su5bjBWe+AG59TDilx7hmr2QpMYQvVE3NtosRHjJx7I4GQ= 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:32PM -0700, 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>
diff --git a/mm/memory.c b/mm/memory.c index 21fab27272092..e73245b791a7a 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2932,7 +2932,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; @@ -2947,14 +2947,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; }
Saves one implicit call to compound_head(); Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> --- v2: change folio_mapping() to folio->mapping mm/memory.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)