From patchwork Fri Aug 30 04:01:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 13784197 Return-Path: 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 B0941CA0EDC for ; Fri, 30 Aug 2024 04:02:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AA7766B00AD; Fri, 30 Aug 2024 00:02:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A092C6B00AE; Fri, 30 Aug 2024 00:02:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7BD3C6B00AF; Fri, 30 Aug 2024 00:02:11 -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 50E406B00AD for ; Fri, 30 Aug 2024 00:02:11 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 007E6141405 for ; Fri, 30 Aug 2024 04:02:11 +0000 (UTC) X-FDA: 82507564062.13.C9FD264 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf14.hostedemail.com (Postfix) with ESMTP id BEF0E10000D for ; Fri, 30 Aug 2024 04:02:07 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=FIUxMWPp; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KVmrCEOh; spf=pass (imf14.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724990408; 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=IkBZ6GD23mbbB8bJTVNg6HDcbosrtE9UJ0jUv27UWio=; b=MVcKjBos/dgtL2BLMK7eu4ieXog8fVr63Iyh5g4Y6bg+aHu6UbUIPebxBk+tpcQMNxSTNQ ZyqkAlRO/z1p0WIEOI6uyAX3efeCs3bAJ7ORIzuFq5+VMo/3zwmNqVIsySrUcsH3UOyF0G GcIqBTB42+S7cZThN1qlxIedMjflzdw= ARC-Authentication-Results: i=2; imf14.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=FIUxMWPp; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KVmrCEOh; spf=pass (imf14.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1724990408; a=rsa-sha256; cv=pass; b=5LMxYEQoRTl77ap5FXoYuQqrW+LbiVEtkYdN7cwQ7rCrmJr01A8vUlUAqXYaPGr6588Wnt UPS5zfdEokp6InMujOlTc3xMEh+NYQ7g7tRQywB/R4r8PvaA0v5rHIjk0PndM2OJ/34Fq4 OOSyjUUHthsGVTUn5EANyZkG/rL0wTk= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47U2t1Hm018731; Fri, 30 Aug 2024 04:01:58 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-11-20; bh=IkBZ6GD23mbbB8bJTVNg6HDcbosrtE9UJ0jUv27UWio=; b= FIUxMWPpig3MoPvn1N9nov6adRhP8qByjAwvvi5ha3haGaOHTrS9S47LvZZ9o99Q rkvPgLxA0KuBxrqhnIcI9EIUqFAa843cpC0glod5dHJAMlWNmopLfwivItuoKG1C vjbVxXr5GUjqsUIk/KBh54PS6vG8MRT+Eh6KvOzwaoT9hRkByJ5Ww0W9BSSx7kj/ sRT98mGch8VDWHBNdqj5MKg/2a/VPKz0fUx9V/LrD3+aFPnTI5Fl0QIoSWm2pofI YJ8WSepz4apAV2N/SPNhO3QhKEr8Euzgw6zXFKKnuIKeA48ig1oNou0EeEpwFx9k mEsuNby8bgGvsgrEsnqzdQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 41b5q381j2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Aug 2024 04:01:57 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 47U1FiMp036757; Fri, 30 Aug 2024 04:01:57 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4189jp2trw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Aug 2024 04:01:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UpdL20deIAHzhKov6aCdca3RM2IpLONvMZXtXEzgI8oTlZHKRQIgybUqx2CTfW/AkXU9REf62UB5w6EWGxNl6YkcMv/ur6poD2d7N6eFBRnB6MaruYMbT6SCTWYnsMcK4W+Rt55NsQdV471zqL8isXydX1PnNCLku1aiE8NAR2xcNgFu5ORXshJpEK+LJBOojQ9hxNCTc9Ew/sbgyd0F5TV4pbZcpLFkrmtwmw2aTpsz+DNiF8I/VN9x2PrCf/BAEgDKwFrfMKt6XEXWCoxbz3C7tLFAOZ2GyEa7/kAWC+QrnZ0UBEoCv6MvQGVmR30grWOP9pakqp+F3MUu5kO5Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=IkBZ6GD23mbbB8bJTVNg6HDcbosrtE9UJ0jUv27UWio=; b=SbIGnQczqAxSxrj2CJlHbxsz9d1ytRNt7wPNOHOsj7J8SB5mnv54FOtWebnJDPWwjV4t07+o8opHDXzN3jzLdRqCkmNCPhk6sqh1stwT4Vdhy/e3Ig5OPnpADaEGsg2bxDmQC377tTG8TpIdZQt5HGhNqwjKdrMnDyxn+EjLcSx1rItAdWZ4YKwf2tTs/454Q8Bo79476KffKoGbKkAUgxSVhFlIyTpqrhtcc7UhGp0EgCnm7quj+xs5n4E9YuZ2N0doxQdO8mVCl2Jt1oFGpgFt3lHmrcphogT/1xTLveXbKkkbVin6dSC3YFFPOvMcR50XRBnWgvulPYFSfDrmGQ== 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=IkBZ6GD23mbbB8bJTVNg6HDcbosrtE9UJ0jUv27UWio=; b=KVmrCEOh81hlGBngWm+OuYkDsVi5rzFuwbGkckjgjcOntFCbNUqst8RL0CtwbBAsk1bIrqsPr5pELkcpw4QjL4/H/4tCD2rzdFzxXlhyZl2KJTyWQkEENsOAl7hUYf7MlUD9ObKQWp/DcJ0baIDN5kaiX43INmMJlflTbXdlhgI= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by IA3PR10MB8115.namprd10.prod.outlook.com (2603:10b6:208:506::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.19; Fri, 30 Aug 2024 04:01:54 +0000 Received: from DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490]) by DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490%3]) with mapi id 15.20.7918.019; Fri, 30 Aug 2024 04:01:54 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Suren Baghdasaryan , Lorenzo Stoakes , Matthew Wilcox , Vlastimil Babka , sidhartha.kumar@oracle.com, Bert Karwatzki , Jiri Olsa , Kees Cook , "Paul E . McKenney" , Jeff Xu , "Liam R. Howlett" Subject: [PATCH v8 21/21] mm/vma.h: Optimise vma_munmap_struct Date: Fri, 30 Aug 2024 00:01:01 -0400 Message-ID: <20240830040101.822209-22-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240830040101.822209-1-Liam.Howlett@oracle.com> References: <20240830040101.822209-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT4PR01CA0119.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d7::13) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|IA3PR10MB8115:EE_ X-MS-Office365-Filtering-Correlation-Id: 41ff8fb2-7576-4cf8-f03b-08dcc8a87c26 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016|7416014; X-Microsoft-Antispam-Message-Info: G7jf839ShxVKWgFTzRVkF4+HO4/VytUIjIQFQFS5fy9mUfaCLRD3rRlJoF7dEKBzGJmb2XeGz/f2ejXAGzcTJgVoXu4+gfdaeF7gp1FpUJiopS73laK9RgKJQ9RLApqB/HJbSRi/7eSwWA53BV9XH7dCru6b4EkgrYaNf/FVVoEvb2NJUNxC3IueTmVi8bJFTpdZQQePYb4H0xU4IV9lUoESdkIu9Z28mfb79ov6QD6jodJCVEeF45dOvFqRj4ByeUDZ/Ql9e6fOZoPcH63NlYcaOBsI8Eye1/dXYiaW7Hc7JLxL/eUoB6Y+wgtT8DKPVe6k3yZBl84s9HZow+I9ki/q/aBEEE8oF9PJsOlxjGQX5sr0V0CLVwozW1H2/Up1AZ170uGFV+pN4eg20uRcv1g8EO4D9b3M6tEe8WkRvVxSsMAXK+i8KU35F5bFZlAPwbrJjYiXVckvgJmwW0j1UvAm6/ODtAFyo6FfPdizYl9SvrtA6TfPMO3Y56wcId+qyPG82xufmECiXsiLgfQoHAR1HJUc1zT8ib6rvdKuQSdG2/0U+0rXXoJT2+RyW7FjLkcu/5X2IvxlO70Cy17dAVKnZuDio34lNT1WeTjylzH+5NB4Jx2R1UDWBJLv4+sXseLkIXXz2AXSxNffD0hOWsTJp1+vZGtfcFVRG++L5z26UcpEyxYKVlNJNsEBQmGwzzOKLoMeZvKKvK3c6KBwsS/uYOAJid4bO7ghITxs1decIIgHzdJY2f9lHAsUIGM0fFJ9LUTMC0q52XmNTKhZtPPujhSI0OaRcvbThMElDwaEbuBzBMt/MLWdxoUPdaEH4gQyBra8YV9CPIYYp72xRnwFaD+lAulR9C4LjSKfDRhpThq6mW906U6EbNIpyUvgT5K5FAqFf2r+8n92L0hVT2wzy+sVWD/0kNVWnoDHvv8zuYVAhFQ+fn7SPMAS454kNSPcby2mSMzVZ7zjAzB90668ne26pMWu5MWu6hC9CYBgV/NZiQP6qMm0dDucWuszPadmhWbKOg+KUc8A8+H3Rc5GQwK2GfRAdECtmc32klX4Q9Z0uG9reH6cp7570kQqjh/zrKybMTKelDwtCJxr6JcfYiRNoiGJcvq4ZwolQefkg7TWAUIjcDN34J9nBtnc4YvEp9/fmYRjy/5EJqbsX6SrZnCoV5b3haQLVM6x4PTwYdU4VHrOlatR5xe2IXsm1OkpS86HtUvoQLKApkQ9bsQMRICoXGJ8myOvAIPep9NEC15JK37nAIYqRT594MESvTWiJA5SrBhfrjjHpyKuz7jek9ao7pWuR2eEyGIfO7pqJEfK2KP4fksnUX0GDbr8TSE+MdI0OTvzXgFGJU84hQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR10MB7933.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(7416014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: d67dAFAilp4OI8vPR6X2c1g5p3Zv+4W1lLCe8ZqyfQFpXTcy7283DdOMVgUqZKI9yY+TxxH2FCCpx02V1gXII1hKmeMnEqUX0f4hrNzXF06nMeO4SuIo2WG1d/zCn7K7X7K/UYnKsWmIY3YQR0WqNYx7JLvXF3zjriAM0Sh7fU5RxyU1f7IllOEGsqarBgU9fMj806q+WKuS0R7xCna2w7ScxIQlUjN+84ssCiZlwB7CPkBomIC7fhNhpPPkUtwrx5fW5PZTxultJW2lanSSfpm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P71qIYWvLxnwdmhwIXc+HLYNCjmD3KJi+ymaizR6UzrQQiGB16S8+neXFeqoTCzF5/gJCwH1cYsweoGuAjTD7CwzabKHiP7e3yWPbQYPuGocZ3rcsBQ6WU2Sm00niJ1YTtEbfDhxx/XF5/owzkIUjJ3DondCbSpL33zjyjYw23iuHD/aUeWpfa3ZpaFfp6Lm4EcO9mUGIoxXbasQkzM8ERjQJc8ovpa9KvJ5+ZyUB1iohxfFAI8piO3wVAw== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 1oQA15hjtjlfNQAwAP1GanlpFtXf0PZmB+yPy1l9jtH/1/a1UA1maPhbHknPm9pHPy4pRK/pML3CkiKcTZCNZvAliAu7dlFko2aKtSzA8DTp5dpsNOFaO6Vx6y+6jNjBYu144zn6yCDHA8b9cZhCanA28rIh8urXjzjsFX+Idh9Mk0xNNb8Nd3GYIUjJ48mQHVRWV1aUca0y+S8SNmkviotmqYhn+alG7Fxu+OTmvmAbU5WwJC5KPdtD0SUj+jmFGTLwo5MSb7R/SfG4OBvZELUWyHTtiwDLs9V3221viLyLw6akZd2qMIc8JGsjraADBxLvGeDwY2IGGLp3l8o0hrYkjX/PTgz6zU3bXuYWBbPAf5wfQsatF8XeOw9A6u0+mVZy6z+3tHHMT9M1FRDWBBpFeL8bfd6Fg70BDGt0EmKXz3OXMhgXdK984yIikie/K5VKcPXsFsetWEZqJNHdT5sN0AYUFmiPdqsG0f18NRL57ZEm7RgzUWbqgzkmviLIZl9GlK7/q0fa8WFXV+qVeYXk/kEYpAdzdrxKa6jR+2Xe+L9UVUNMDB4RYgF3GyVxfDdHrCh/nuV+mLYm1agobk0RSDA/AdzNoH6AowuUK+U= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41ff8fb2-7576-4cf8-f03b-08dcc8a87c26 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2024 04:01:54.3624 (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: bf7QfIcvpBhcxfum2CBcEIEQUh9LyZOhMT1syy0IsJ0EZaueALB0HvUG471D3Ltj4Qe/KnwO5yU0HUCpTtdlKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA3PR10MB8115 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-30_02,2024-08-29_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408300028 X-Proofpoint-GUID: GxSzGFAWR-p-cHxD2Uvldj6tTmhvTIDs X-Proofpoint-ORIG-GUID: GxSzGFAWR-p-cHxD2Uvldj6tTmhvTIDs X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: BEF0E10000D X-Stat-Signature: dsbwfpfb8e9sdkt6eb4pqtqpn9wi4ujc X-Rspam-User: X-HE-Tag: 1724990527-415531 X-HE-Meta: U2FsdGVkX188FqHtyTz7Ceophwq+6vrzbiDL5WzKfMpSZPf6YYEGCL29uM8gnwTMFC2+I4ABoICnlxfDowWg0byES2SpzLzHt+Bt4USJJIo4hnt6Z/+KL/ml0OBUOvsf85zEMST3XRf77R3CdVjgdvHcwB2XK3+N3UmApE+xFx7fnInAiB4YwE9pCsp9m7aJABXY5ioXFx/YhjmRuddVbg5xeTgKEPgR8pFiByjgio7bRDWH0sWq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RP9htZs/yZG4hBgqOVmP1ybxhtH57qh6cqRWHA87lMU54o0fwlVnwn9B5Dw0/yPLdxwPYrdAxecMpXZpK+ySG2wJEMD18t2YxiuEU5EjKgCdZ6i6o/2PqebpecKoqdxjf+Hq0W9JJiEhDUTtspEEr8E/iYJ5Uf5gePJ48EHSg//nu1Yf1wKO2qr3DuDTSLID5tKw9WSvY6TE5sHmqVqz36gVQXntkqybdv0FOo66zUzp8BwbVyxQDJUgJqyliZnI3jZeDQj1xPUi9qAEqfTS7Itx6Bc= 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: List-Subscribe: List-Unsubscribe: From: "Liam R. Howlett" The vma_munmap_struct has a hole of 4 bytes and pushes the struct to three cachelines. Relocating the three booleans upwards allows for the struct to only use two cachelines (as reported by pahole on amd64). Before: struct vma_munmap_struct { struct vma_iterator * vmi; /* 0 8 */ struct vm_area_struct * vma; /* 8 8 */ struct vm_area_struct * prev; /* 16 8 */ struct vm_area_struct * next; /* 24 8 */ struct list_head * uf; /* 32 8 */ long unsigned int start; /* 40 8 */ long unsigned int end; /* 48 8 */ long unsigned int unmap_start; /* 56 8 */ /* --- cacheline 1 boundary (64 bytes) --- */ long unsigned int unmap_end; /* 64 8 */ int vma_count; /* 72 4 */ /* XXX 4 bytes hole, try to pack */ long unsigned int nr_pages; /* 80 8 */ long unsigned int locked_vm; /* 88 8 */ long unsigned int nr_accounted; /* 96 8 */ long unsigned int exec_vm; /* 104 8 */ long unsigned int stack_vm; /* 112 8 */ long unsigned int data_vm; /* 120 8 */ /* --- cacheline 2 boundary (128 bytes) --- */ bool unlock; /* 128 1 */ bool clear_ptes; /* 129 1 */ bool closed_vm_ops; /* 130 1 */ /* size: 136, cachelines: 3, members: 19 */ /* sum members: 127, holes: 1, sum holes: 4 */ /* padding: 5 */ /* last cacheline: 8 bytes */ }; After: struct vma_munmap_struct { struct vma_iterator * vmi; /* 0 8 */ struct vm_area_struct * vma; /* 8 8 */ struct vm_area_struct * prev; /* 16 8 */ struct vm_area_struct * next; /* 24 8 */ struct list_head * uf; /* 32 8 */ long unsigned int start; /* 40 8 */ long unsigned int end; /* 48 8 */ long unsigned int unmap_start; /* 56 8 */ /* --- cacheline 1 boundary (64 bytes) --- */ long unsigned int unmap_end; /* 64 8 */ int vma_count; /* 72 4 */ bool unlock; /* 76 1 */ bool clear_ptes; /* 77 1 */ bool closed_vm_ops; /* 78 1 */ /* XXX 1 byte hole, try to pack */ long unsigned int nr_pages; /* 80 8 */ long unsigned int locked_vm; /* 88 8 */ long unsigned int nr_accounted; /* 96 8 */ long unsigned int exec_vm; /* 104 8 */ long unsigned int stack_vm; /* 112 8 */ long unsigned int data_vm; /* 120 8 */ /* size: 128, cachelines: 2, members: 19 */ /* sum members: 127, holes: 1, sum holes: 1 */ }; Signed-off-by: Liam R. Howlett Reviewed-by: Lorenzo Stoakes --- mm/vma.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/vma.h b/mm/vma.h index 6900e95bcaac..85616faa4490 100644 --- a/mm/vma.h +++ b/mm/vma.h @@ -40,15 +40,16 @@ struct vma_munmap_struct { unsigned long unmap_start; /* Unmap PTE start */ unsigned long unmap_end; /* Unmap PTE end */ int vma_count; /* Number of vmas that will be removed */ + bool unlock; /* Unlock after the munmap */ + bool clear_ptes; /* If there are outstanding PTE to be cleared */ + bool closed_vm_ops; /* call_mmap() was encountered, so vmas may be closed */ + /* 1 byte hole */ unsigned long nr_pages; /* Number of pages being removed */ unsigned long locked_vm; /* Number of locked pages */ unsigned long nr_accounted; /* Number of VM_ACCOUNT pages */ unsigned long exec_vm; unsigned long stack_vm; unsigned long data_vm; - bool unlock; /* Unlock after the munmap */ - bool clear_ptes; /* If there are outstanding PTE to be cleared */ - bool closed_vm_ops; /* call_mmap() was encountered, so vmas may be closed */ }; #ifdef CONFIG_DEBUG_VM_MAPLE_TREE