From patchwork Thu Aug 22 19:25:35 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: 13774115 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 EBCFFC3DA4A for ; Thu, 22 Aug 2024 19:26:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B97C980052; Thu, 22 Aug 2024 15:26:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B469F8004F; Thu, 22 Aug 2024 15:26:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9730280052; Thu, 22 Aug 2024 15:26:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 783458004F for ; Thu, 22 Aug 2024 15:26:49 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 33776161934 for ; Thu, 22 Aug 2024 19:26:49 +0000 (UTC) X-FDA: 82480863738.19.A0734E8 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf26.hostedemail.com (Postfix) with ESMTP id 4A90C14001E for ; Thu, 22 Aug 2024 19:26:45 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=o2ZJQ3qb; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=O8BHHaiU; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf26.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1724354745; a=rsa-sha256; cv=pass; b=ofcaq8p5Wcdooq1LIUkPZjy8K5Y6d9t8XNFW227R2RN/pXq4p23VjoccV/MO1AaXIh1Whp I+t3qi/yu7s6PVnws0mubsgu03wk6Iag67gjMTmcetZWvKVatRqUPqJNmTtJRZuDzfHeiK M4dVebDEWjtS+jMMQ9RXGr7IIcpmV0k= ARC-Authentication-Results: i=2; imf26.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=o2ZJQ3qb; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=O8BHHaiU; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf26.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724354745; 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=cgnPrGOzOxWIrdBQ3R3NT9Fecz0tF71K+188l02T6BA=; b=F6n3156R5BZXrxBDkI2/Scoed7HEHABph4uC3LNK1lWfCWxkU7zNLC66RK+uuALssEH/T9 ol8iycBNWLNJtigu0U6PTriPdcfiDp+c5fngDDJBjecNUuul4d0XsgtcOTdvphl47E8p+D 5DEcYEgEOUzVUEyVsau3sv6ZNUlDzL0= 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 47MIMWMd026319; Thu, 22 Aug 2024 19:26:38 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=cgnPrGOzOxWIrdBQ3R3NT9Fecz0tF71K+188l02T6BA=; b= o2ZJQ3qb63qJAQ6p2MH04wzbS2CXWwe+C1mGT+HyDCGuPSsaNkWy/wA1OSUXIXzj GLi46Q3utlqecBSNaIrF4ROheK2d2stv8RFCnqPy7jfChcns80aaIjq0rhVoIyl8 1BhNh2b6q8dW/6QWtsEsvCwAvh+pArPD7VeAu2rgHUIPBquPpwwhUc9FvlmjSr0e RtVlpewyZ6NN0itG7cHTo9d2KgFsuWVas/01frpAXs49nW75Nk0rH8g7BpojdRDX SBjt/5xCN1+JlIcp8TY7mLHSRxPHCwHj8LfYaWtxLaKocKEaHVNoLmJqz4If3HPi 12ejlfCtqTHxFIElfFvUCg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 412m4v2w9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Aug 2024 19:26:37 +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 47MIqaQ1019453; Thu, 22 Aug 2024 19:26:36 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2171.outbound.protection.outlook.com [104.47.57.171]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 416b0b9ckf-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Aug 2024 19:26:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DNd7l9YbWk2/jhl/PyEmFNx9k2hFBNwdSI8NZohEe97TGFNwaXXEeOwt2a0RU3XMaY9fLqtiz8ycVzvMuDER96sjRs4/GjgwoxCGM/p3UBYpidz83qIP56bI2qZlvCTxg01gKRjID28zLVX8jUbIPHndLA/eB0w8Aa1dwFFTYfUOYBnokxf0OFcF0UqDQCBLmMIRFuqExW1r/8p2MVptBIEpARqx3hMXl49p9k6YKSkFX30YIrR36p6rALS47sbeVNvyxo2yZ+keGMH/5Okz1k/ETXiH5sIZaEyRcWcMnViGLh9SMu2PdiU9MuwfgFzbcfzKUsEDvKHfbdmBjsOhfA== 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=cgnPrGOzOxWIrdBQ3R3NT9Fecz0tF71K+188l02T6BA=; b=i5kHbxywR+keKx7i0lV9WdO6LwLDgCJp+lc8tBu4M4ftO0yP7wzAx1WbaDUPQYOptDMl2tafRPtuAhzJcB+D71o/b84Gl4f3oUqfFTrFp0+6aYkArrgxi4Zh5u29foL7ufjao/uFuShtbUkr34Us5NLpCPjSScVJUFr2wycF3v48Jv/9G0+THnt55uNyXiyR9CCHiLzVAHEzWDpnR+fn8RPEkEWULeGmKt/l52kNg49xFPTVNhtJER8C0DQJZq4OrB6fFTqbTgTfq7vNjc4MVu2DcYo37cXzEf/hvOjhNP4UDAX0v5k6Yf8zUUxmEvAIMiNdFL3SddO+y9rl3YRO6w== 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=cgnPrGOzOxWIrdBQ3R3NT9Fecz0tF71K+188l02T6BA=; b=O8BHHaiUqYwWZs0BmwUosB1TZJFtJgtflGwPMpUb1hKTBY2L6eKxKaC9D8+WK4Hn9wXnWnN0+v8iHEk8KWxYySGwo3kf2UnFgRkuVh2sjUgTX5Pliz1L/CExj7eFUWa99NVOWaeqzwfRkz5fhnlyp2/necnMVEVx339l3q7QTJ8= 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:34 +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:34 +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 13/21] mm: Clean up unmap_region() argument list Date: Thu, 22 Aug 2024 15:25:35 -0400 Message-ID: <20240822192543.3359552-14-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: YT4PR01CA0385.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:108::24) 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: 227d80f3-a105-484c-1fa2-08dcc2e0556f 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: XlY545hcT2Oip0m7q9MiJzceeWY5ti3nfdR7MJvDvPS2/YoomGUtr+LSLUwao5qDRKHo/iyQrhv5mtXUHNvTfLYLMC+uEWWAhbTkhcLic9NPNyGeujgpNOe7IVAAMMaOL0Ytcae0/VOLPxVCzLa7B1Af4Zfroga5oWlCdliGRh+Bq9aQuHmTc6e8aIEehaSQXCz8W/yibQLzNm0S3vCgyR7nlgFRR79ECaaRt0tNRE2vxUXHH38Iv+lJmxs1n0Yn6XycTFX+3sCgVsATe+lNFlSLZQxlmUwqwGp4eZBbEdrfYWSyuI4WeUdV3VC8F27EQ7UcrKWF7mHwowso4Otx5NTB0S8SSwAiQI1m4X6JoAfDALdKJLEsYrFbhvGnRAcBTWjAldf6L6ac0ygG4Dm5khXbXKCiCbiiwNy8NxCU2gHqaXZc9NCaawxQ2Qp+/J+L8me+EdaooYJb4I0P2rWjuRhlg+eOuI4awVUwEC/TNwRhl9wPjNV3CruADzPPa9Y/wzxiSytcvJq3zk61W9fgcBBjz/8QV5RE/exBQVgVMwm/jeaAOBNzxfsUw71/KvSLxThjEcZs4ArT4WumfiDZ5VPVFwAs0m5s3OVW8B33UTGthPnb/brjVB8uoAOqbuUk3VfA8ydXDcS39Id88mzbPmOkrXyF4IWwT0aXvZ3uUuanhMzPmJclwAJS8OcKRM7uJKJFv+rvAYQZD4yRmng89VglppEuwsvR/rXhA7wpZPABkAyqlL5Efzg3ENUVEbU3Ajhbn0Fj8WSVwdcgI6Q211OK8e8cEJkq0RdxrI3ChhlQ3g9GyP1Y8KP2DVmeQjTa2w7egLZNnNaD21wBTguoCLkQ10zoqcGeEwlgluJe89LebNjk+6pdBtlhYimMN1hHT5xdLitZ5ySebo1fgiIsekk2MbsrOvvt8w9Z9GHKVUihq7d0SUlIsz1kcMJsF6qvd6CBwba7NXnG1+ISpWZRCwZMXFvMkS0LG2bECvbJhKDQwqk7gpErizMgh6b/8Xy9qYPCQ5y1KGJq8sjKzufwLBAZExehfAKSIEdAATFCYXvsJku6I8B3+jYEMFsXmYh9wOcFudaeRwqYsdkrAlLzV7RbzLDmRCvt0bXDhGxt9oxbOa2B72Xlc7BfH+kJd5T6i4MhEgztLZ4RpW9ND+O37zkDOSVib+Bx9vruMh93L1GeLahSXSIkLFmPi2maabqrFirXzwM0N56/N7aM+jXpUqzeIDJb5C9i2qL7oHQlpfMtPIvp21N8IM3x7vgvaaXDnYIVaMe0g6kBLj4JZrPpfrgZMlqrzl2t0rLDvWkV++dMd5Z/1qMvzdftSqcRCeFv8EiVmnSbE5aCDvijsHRHeg== 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: 1OMKBu+PaG7eMD/3FuAV+tIjQKZKzOPziKoOmnn3rnwVB28KRFgh+yCK9VfHnRijcRsbj68z0QACKYReMV9JP8UJ0TZSmfahpNtmyv+ZhtMXy5hW2Rpx8KI3/UCXMzccFT0Gv0byqjAbKLdc6jhXautfksN952Gyavb5YbTbIJ1ja/S5FtX9kfTsXSN/xC65BanLv8WIhiDnKtWvirYxqwxw1/9U+DKyRdPj27V9c6xv1HoRqiUW2lAiPnvgRdcfPbAJpt9W3zrNy7ywHAxj2AMJrGhnpunIevuxHcw6tFO+T8fDKLv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qkQVWVlA8MEtuO39lMwvA7j8peVpQTsIqNphDtR2t3CByBMLPjDNI7OelESTvO5MrvHGBa+TcVmRP0AQMUD3yt/3xAcD0sLJh4rgXHG7sxVWs/Spuit/+R91Fjm5UrdVlV3Qr6RORTkz8yHWNzWiANuTcLAmfTRbAvtprM3aR5nqd9LVhOFDM0jleRtfcDbFnqeR1Tz1+F42yjPHoGQk1ccleEce8HHZKqEW/U6fdw== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: AxfSdg7x6OawfYdODFMsbTsQTOn/LDxohO1SDfCnUmVtNop70faunE4nBdfS862jQUK+JCGosIps13QLmkm30lUqXhNKw2bGvXAmHqk6ohgw/oa9loTOxb18lsQV/wKJhp40sxdswirRcGve8BiLTbTI29Y8iXYXmuGFAy+OTst3k9HO0BgX6m9YMIMj35jz+l80KKjQCfDkZi70f02BdTYTnQJRcWkI5ESvzucwCCx+U5PS7lowNKDWC60/vsjTg95Ekbq/rwLpIOOfX1+MU5Vc5E/FEbEwGbM5Ook3X5Dws5hdhrMQoT8Kk2xMLMKQaH0V35Pb2p3cnvpz4qVRUTElI1SIPQ1rEAYaKQHyOY9gEnFS3SqdCR37o+REswX4DyjHtNGfNCkAuZRAClBIVkpa9pMfVYFXQwm82EXsk8PCbSUPyxxpWKLL2f4o9xXCMPNdErvK2l0GnHJnvmUoJMCScvcAHSo5WW0kOFsdY1RoK1Jeuw9+BPiveiywoNKPueH+0xzHkVfcl4/5vUDvTgEWbew5fZFUo3x0eYL1H9joYL5HlBhW+Ml0TBfIGXeHnTOktkcIYk0o9CaBi35g0iP2FHE9r64mxdAQDL81BS4= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 227d80f3-a105-484c-1fa2-08dcc2e0556f 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:34.2807 (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: qf9h4/hd5FU8UUq1zyWQOef59A10GQDt7quNS5/KURL6pETIbU5/sd+0fiYu0o+Cdqt+SjzM66hIFCK0YNMhvw== 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 malwarescore=0 suspectscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 bulkscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408220146 X-Proofpoint-ORIG-GUID: cFL0Gs0ZQ8Qc-ft_vAURaoRk6ov--8Il X-Proofpoint-GUID: cFL0Gs0ZQ8Qc-ft_vAURaoRk6ov--8Il X-Rspamd-Queue-Id: 4A90C14001E X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 1yaxcsqo3fkforf85kp8yorargait85i X-HE-Tag: 1724354805-645573 X-HE-Meta: U2FsdGVkX18840A3UvU8Nq6rdnciDVWI6RPbMJqTSWcSj5aO6vH5MPOM4O0wa+qM/APd+mmyddw80fXeQbvbUqeasfzHVCHSLR9TKuGwVFS08FJo2rECTfLLyQ8+rtprH7trf36LrM4udBdA4Y7T7lRK78w5ruILcy3J+t6JXdYHpCccDvbjA+QUswBSlocUuWYz7D9gTNGaY6TM0e+naUE3dF/aPowsno6YZ3/cIAHsJWN7b3CIFvlupByMrZS6b6lRW1PekUdgAe9dvVY5hS4bhUNCQYao7BT3D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y8nbT2BLwlz/NOA0PQP1jOOnOhHt3LEu+fvjdu0yRs0BV4OyQ4rhf2OmVdThEwpRNrXTj5MgPUvn8HSCIMoC0OHi7UoFjgbpwJF7fq6zAqzoIcqC/PGD3i+AvTnEZ3Tbt2UY1dpXSkE4LwI1Zx0JDF/pAIqiMLFdlo3ErAloKzkMDLBrtp1d0Dneyl2W0UjvpRcQ== 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" With the only caller to unmap_region() being the error path of mmap_region(), the argument list can be significantly reduced. Signed-off-by: Liam R. Howlett Reviewed-by: Lorenzo Stoakes --- mm/mmap.c | 3 +-- mm/vma.c | 17 ++++++++--------- mm/vma.h | 6 ++---- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 9285bdf14c4f..71b2bad717b6 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1613,8 +1613,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr, vma_iter_set(&vmi, vma->vm_end); /* Undo any partial mapping done by a device driver. */ - unmap_region(mm, &vmi.mas, vma, prev, next, vma->vm_start, - vma->vm_end, vma->vm_end, true); + unmap_region(&vmi.mas, vma, prev, next); } if (writable_file_mapping) mapping_unmap_writable(file->f_mapping); diff --git a/mm/vma.c b/mm/vma.c index dda0dae069e2..9e11892b0a2f 100644 --- a/mm/vma.c +++ b/mm/vma.c @@ -155,22 +155,21 @@ void remove_vma(struct vm_area_struct *vma, bool unreachable) * * Called with the mm semaphore held. */ -void unmap_region(struct mm_struct *mm, struct ma_state *mas, - struct vm_area_struct *vma, struct vm_area_struct *prev, - struct vm_area_struct *next, unsigned long start, - unsigned long end, unsigned long tree_end, bool mm_wr_locked) +void unmap_region(struct ma_state *mas, struct vm_area_struct *vma, + struct vm_area_struct *prev, struct vm_area_struct *next) { + struct mm_struct *mm = vma->vm_mm; struct mmu_gather tlb; - unsigned long mt_start = mas->index; lru_add_drain(); tlb_gather_mmu(&tlb, mm); update_hiwater_rss(mm); - unmap_vmas(&tlb, mas, vma, start, end, tree_end, mm_wr_locked); - mas_set(mas, mt_start); + unmap_vmas(&tlb, mas, vma, vma->vm_start, vma->vm_end, vma->vm_end, + /* mm_wr_locked = */ true); + mas_set(mas, vma->vm_end); free_pgtables(&tlb, mas, vma, prev ? prev->vm_end : FIRST_USER_ADDRESS, - next ? next->vm_start : USER_PGTABLES_CEILING, - mm_wr_locked); + next ? next->vm_start : USER_PGTABLES_CEILING, + /* mm_wr_locked = */ true); tlb_finish_mmu(&tlb); } diff --git a/mm/vma.h b/mm/vma.h index 7bc0f9e7751b..6028fdf79257 100644 --- a/mm/vma.h +++ b/mm/vma.h @@ -147,10 +147,8 @@ int do_vmi_munmap(struct vma_iterator *vmi, struct mm_struct *mm, void remove_vma(struct vm_area_struct *vma, bool unreachable); -void unmap_region(struct mm_struct *mm, struct ma_state *mas, - struct vm_area_struct *vma, struct vm_area_struct *prev, - struct vm_area_struct *next, unsigned long start, - unsigned long end, unsigned long tree_end, bool mm_wr_locked); +void unmap_region(struct ma_state *mas, struct vm_area_struct *vma, + struct vm_area_struct *prev, struct vm_area_struct *next); /* Required by mmap_region(). */ bool