From patchwork Thu Aug 22 19:25:43 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: 13774125 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 B0247C3DA4A for ; Thu, 22 Aug 2024 19:27:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 335F180057; Thu, 22 Aug 2024 15:27:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E2E68005B; Thu, 22 Aug 2024 15:27:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0720580057; Thu, 22 Aug 2024 15:27:06 -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 D66C58005A for ; Thu, 22 Aug 2024 15:27:05 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8E7A3141898 for ; Thu, 22 Aug 2024 19:27:05 +0000 (UTC) X-FDA: 82480864410.02.C03CE56 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf07.hostedemail.com (Postfix) with ESMTP id 250A240004 for ; Thu, 22 Aug 2024 19:27:01 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=AUBtDl+n; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=A2pirFbv; spf=pass (imf07.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724354805; 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=IvG2WpdeI5OiqGGcNid8Tye85YyH/LiFaaeLo2szEDY=; b=VBVhakwKSUFmklhM9200GmpHN/UVkN9KfuBLS/tUO4ptiNVwGLrIEsGyZqZQ0DvMWUeakV IfgbLFu6BpKrOQ8emJPaAziZSHpWQm80cUMCYjM0NaXX4SAU7h5JLhpGMq8M8T/eUwzBh8 NuGRkXTo4ClIq81C1iRqz9VauOjD8mU= ARC-Authentication-Results: i=2; imf07.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=AUBtDl+n; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=A2pirFbv; spf=pass (imf07.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1724354805; a=rsa-sha256; cv=pass; b=MkjtK8rTMPcnZw24Dfkhd1gNHq0n+pXW/AsWAnhFBWwd7IwF25e5ohAth/L702qSmPj6pF b6f8qQ9wUp+su2Hu4rTra1oav86UC6Ji7hj9TwZPVJRLF2dZmQUkSV36fGrCWUrc6dbWFX /lO215uBb4GhDMbpkfvLW9vWck+0uMg= Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47MIMVP3026316; Thu, 22 Aug 2024 19:26:54 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=IvG2WpdeI5OiqGGcNid8Tye85YyH/LiFaaeLo2szEDY=; b= AUBtDl+nWAWwEhybSpDl4S7j9Wbu/MBGEuywQE0pp1QTkX4n6XGU64q1n8UPbWDW j3+GIJ/1gqsnJolFfcbN5gHhyPAqXEVwdRnC405FHS034KzNbGldSx91UfX4Q8xm DWsZxQGmVfc37ZopE5aINSEHpTUfiCnUWpzXeeVOD4d4dMPhdUOlL6tjGlxX6Mzm w5Hqnu6ltWxOYEiUPKzKTM0G1BL96vV15RRsZIUsYrfXyiA78XFpQ5qf/nSM9SpY /V/Vh9CdZcL1udUmnHvvk+Ca78y9YpkWvyQ63uSToEcRMitGAa2uoDqtdknTAthi SN/HRyQI5mnPdBmk7XJyaQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 412m4v2waf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Aug 2024 19:26:54 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 47MJJOnX005646; Thu, 22 Aug 2024 19:26:53 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 416bcu08bq-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Aug 2024 19:26:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YHGbQx7x5ax9Rakl7c43PBXX2MTdZGzZ5K1dcRHnVjcVyQTk2WmrOfqEgxGf5SURjGZNc6egARHcH98rS++qlw1XMFIwKkqDsdR3UIX2HAfmgBAz8r0W5GMRfiRClffK385KtAko3gZn+nnf5LKHNfDH5j1YEd7lGzLeGMPbZqVQkWhQoVZapbzXS1T6ERtuHZ8tYZTwGWx1SNt5gDd409X/9zWno05ngeF8e5lS6a1WYQsZA/FqW8znJrt8MQJ90CeIlim1wjejglZtTkUaXUVkAsXp9+QX8cfLtUbH8cUvH7HuJXLgtfxYd3bdZ6iPe4BsNj52lEn4Yd5YzzXsjw== 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=IvG2WpdeI5OiqGGcNid8Tye85YyH/LiFaaeLo2szEDY=; b=Jj6oL7uNxfwjwkNxGkq0aJqGdawyIMXef1bW6xtkmUejTgKkvXoXJn0Xj/ijSRT75Ot/ANoFAe+ypTHc9NOWp0H3ybaVf2rirzrSQo+0Tob085OGbN4fNcneNp3c7lMQp3KB7xK5gIQs1RkLZc2MvWxSHPmrILneQ8G2y/WQR0GzSz2rJSJ3kK7YozhhRugZep61gCi+dO/Mc4Ve3WPuHH1QwR8LFY+JGluzAhmmDwgskz5rQ7Z6vf+fcWEHmkv8283QU+Ma13iq8jQ/k0QV3BTH7zrObV0aty1S5IgA04gv7qAasAPgFJKrqfhUfbkdE+DhKQbGBoRB0c9tX4v7QA== 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=IvG2WpdeI5OiqGGcNid8Tye85YyH/LiFaaeLo2szEDY=; b=A2pirFbvmtoidQpCrtV7vW6r3qZZr2FoxZOi7ep1ITr9ILvVhl9TcGt09CZH1Y6f8hmrWA5E4EfefUCac2wBvmDf21fAL2YFrQjsJVug0BWUP12q7GxGK/FtQFGEKBkcIpebOzwWcuf3asAM1LOQ7Xb50RmRxKxJJ27f1LrFWcU= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by CH3PR10MB7761.namprd10.prod.outlook.com (2603:10b6:610:1bc::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.16; Thu, 22 Aug 2024 19:26:51 +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.7897.014; Thu, 22 Aug 2024 19:26:48 +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" , "Liam R. Howlett" Subject: [PATCH v7 21/21] mm/vma.h: Optimise vma_munmap_struct Date: Thu, 22 Aug 2024 15:25:43 -0400 Message-ID: <20240822192543.3359552-22-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240822192543.3359552-1-Liam.Howlett@oracle.com> References: <20240822192543.3359552-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT4P288CA0009.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:d4::14) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|CH3PR10MB7761:EE_ X-MS-Office365-Filtering-Correlation-Id: da18d156-3e84-49d6-1845-08dcc2e05e0b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: BO/B3KMEOczcox1nqCUmH+QP2OQiW/NrFfy/9GJBFM42MzSo5WoNxVz7YgV2KXFk3TgiwXBRUhPyDxrHlgOW1F4dGmXqvWC9SnnNkX31zZNi9eS1h/ntpbaze9xsf/Q8belfcucrLhpCnyZDA1d4bC3Kxg1w4TdMfhCrQFblQSBZFbXQQFZxYtmvSdTLGrD0Lt8DLmS0BleflkYjhdxg6HVXRJfPPxn7qwvXem8nGS63HGfnkajuvP+4pLqT81DG9EtQ4CdJl3EMV7Mg7UpMPnkC2l1ZmIEVFWrr1OoBzX/xCUZe39AynTCoOAr/utXZGM/oNPHBivxn4fK0EZPg+Z+Vu0ASfwWewZ/EApijAquV4xuXujqupIMfcyzVRoe0L5YJRDp1Q5z6v8H/i6Q1CcV8KcJHNLhWEjz0d5Ef9rJ+A2i6aiEB6JGGJ9RpR0fGDZ1dSv1KHymT8qa41RXH6ZprEObPnh71MEt4ky2n82yNhD+/lj2MKovdq1ZTMV7o7UqnRdJq6KM51uKjcnh/ET7/lMD/lGoWCMAOVvIjD+j2NmqxBdXtOgsTiIcqq0/s0ALd1D331a4vcV5PKba5ZwcKSxr2AVUoTn/KVf701+CQXslH7n/um6kaVkn2MJJ1P/DUZdFujr4mYXesqx6li/ca+koIKLYJbnI2Izwxgp7EQzBdgdzmYvflZI1cU0mf0V0UTCQI1L6hF0Wd6HkJ5D3nZKxh9TsxG/0gZGWe9wdtTNk9CFTyzickeRBwfQDgx/wPHbgXwz56VkijE2/w1fst9P/nBQFAazsasS2OZw9kkdIHy7nMJPtjqO75M4XzxtFUfl136OWN4sLBzYFbAEmM6kEX8L8sJdXXz5m2sxZ/FUgNe/5jyQdfJjTeqCs+j7+7OH0uUmo1/gOvqZN/HtaIoBW5pR6rDveE2licUKwypEu8IaMTe/sHHHr0pwgUHBl4Vq9W/Bj04AXgvNci0gicU9SuRPw3ikl2LJbU7S7G+zmurJmyisk8VkQA4sF0ZX7RVtrX+TB8Z15QflxW4HI6lTZpzKIashh/FDiepsSQLZ4f69FooHHrPE/g3DSTs48KwytikML0YraPPj86n94gXg4PsiQNwlK9IC6XiaCi/ON0SKXQiu0YEJ1QKOtyjDR2JbtOj+UnoaaOTqGsAQwnBWh8yyY5828tbxgs6HL2gEenCSMVuqdddTWRrH3jok2a8U2zkKzRvUXW/azAPuCGtK9bqB+8GFopc0G7YXgjpVdcBvt6cTe3zxmrG63JlRSc3UV9o7+l+n9bSkX9Sh5UT5Tclw8O7LHIHX5TZ8TXheW/JpRmkDUMOgkPhsd8YKgSKECU9nxj3p34RBu+sw== 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)(7416014)(376014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6PdcHEXQaf6UR+Hi0262fGWC3w0gNzU9CRbbsHSE4KL9Y2P9PMp98WnhjfZ46Kv1b2VUWc5Eli87HSEQZhbLjulL5SFW8IM8gEZD6yJWUh6rcyu12Fcgf/nXIHQ7QK/AwehkI0zOfoHbnpcTKYGeawwkeog1tiXSFXXTXsGE3Vd6sE8zmKbE44Rrzbdte8IJF6LITa1EDEU0QN7fhjk1vsAvyYUuVyqWSMBtgAMMJoHAUH1yBdYEt1im/zl/HAvZh6B5TBtCgAmrwoi/VdbufaXP8s7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hTbONP/eC60zbjT8d0n/L1GXYBJjYzWm2/lVGcxrhuD6Dedlx57i/VvjsT5FELVdU/H/jtxUlF3xEpd5lsE3CA+4IPyxNEsFgu66N4En5evlPGiykLLtzg0dF4jLifB9OoJiE3v7PsELjVullLS8LZfNH/n2p60CE3PgiuNqnqcHYIxyn7Xp7AWoXxHWxT0y2D4WB1h/5TkEGiUpbhzNuPWW76X0xWNNSD7wzEBayhGVRTrSaQeSkcBSnNbRVF+hqmtSU2nw== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: DOWifhDm3kU29gBxuAFGLwoGMZOfPaANFKVLszuqFnHHgEy9aOM3yuPjKywmMRuQGSXaj/WUitshHD8IPLkhUl0OqQJmgdG9TtzxjIQMVxuW+6iKuMY9FBzIZ2/c+H50TRGQ9n+L6SsonpT69mKqSPS+spSXB9p2aP/e/js44SqzfZ0edDRysDBMEjQ8xL6CZ3aQTpRh35Q6VH/162DQDluEA6dIsyFWD78SH/uVhBoQ2lcwHSLgCMLwQ07ZMAjS/gcavhtX+CmvG55G5V7MH8yyTOgv9Wj4M3NuyaRbZ3eSPC2iu7oI52Npxvmp/jucaLWS9X+i3devu3LO6R1JuFkAquSvQspRWlxyqRLdDR1dKg+SATorBUWTEypnOl65+OfzmUkM0y/aZAZMwFhKzFdXnjgiV1scKBFzxP0cY/bulQgIEswtP3wC4Zl/tTrfsBhIYe9pRNQ2wAhSxpW3VsbByhdbvUevOeMa0Uxk9X6UdmyQugf4qWnRgEW1ZYrGjRDE/Xj7NPM7BUX6zRbPN+s4ZRv1Pg/d9zd6nC5LVnqFs8ooPtHu6NqZPW7hqH4+jljpznBu0iU92srxbNKjeAVmcaNE5blFsPBO4OWNf3g= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: da18d156-3e84-49d6-1845-08dcc2e05e0b X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 19:26:48.7121 (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: Lb9kyWt/ku+l1zy0J7UoUnwPKm70khfSMLNjb2Y0PVxLK9dgr5BwSnxCYYoFHrs8abmAW/wOHJ/0KQRrpo5g6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB7761 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-22_12,2024-08-22_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 bulkscore=0 adultscore=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408220146 X-Proofpoint-ORIG-GUID: iE_tOlJvDGblwnownrLBgZo3KNfdEmuG X-Proofpoint-GUID: iE_tOlJvDGblwnownrLBgZo3KNfdEmuG X-Rspam-User: X-Stat-Signature: 5sxec95zn7wooq3amb9wtmpmub5i1bo1 X-Rspamd-Queue-Id: 250A240004 X-Rspamd-Server: rspam11 X-HE-Tag: 1724354821-879404 X-HE-Meta: U2FsdGVkX18shIISAqmwo88l5u/rqWGTKdJdMPowtaYMMUi9/OiHWd4dOCYypiUB/AEfJpgy0IiI6gRU5OB3i/CG713kYW2ONnkziFKJy1jUUo8D8l5fhaQ58bJH7cP66ignkd/drD6WvLmRSBllNOlQucAVeyRxOMPwwx/2Erl3uWVZPG5xJFsPR+5vS5FEY3AYb6uw4SykHJU34O0zQwU4zxKYj+ps62CtoIGzZkokyv0mz5Ev6cYKfl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sNsCjgW1hf4IZH0Kj4bSKxVzO9C7HRRIS3ght4fzDhJu9L8VVUEG/6m3+mU2OpXk3VuOOZvQxsPjLglURrgSzG1ImSex2aKjcg+izlF5J4WsAUMe4MynH6od6KGeK8b7TqMZJjSJlghUEikC1z7j9flovczq/tCuaPmruc6yR2l2DrAskcYMMIg8= 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 7047fedce459..c774642697a0 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