From patchwork Mon Aug 31 16:04:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 11746569 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4575E109B for ; Mon, 31 Aug 2020 16:05:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 12CB920767 for ; Mon, 31 Aug 2020 16:05:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="JynFyNi/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 12CB920767 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=Oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 21E276B0002; Mon, 31 Aug 2020 12:05:03 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1CD7B6B0003; Mon, 31 Aug 2020 12:05:03 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E4876B0055; Mon, 31 Aug 2020 12:05:03 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0006.hostedemail.com [216.40.44.6]) by kanga.kvack.org (Postfix) with ESMTP id EBB736B0002 for ; Mon, 31 Aug 2020 12:05:02 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A7D57181AC9CC for ; Mon, 31 Aug 2020 16:05:02 +0000 (UTC) X-FDA: 77211337644.16.roof24_330645b27090 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 14C6D100E690C for ; Mon, 31 Aug 2020 16:05:02 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,liam.howlett@oracle.com,,RULES_HIT:30012:30054:30064,0,RBL:156.151.31.85:@oracle.com:.lbl8.mailshell.net-64.10.201.10 62.18.0.100;04y8zohh8b6owoydpgok7a1cooucgopyhfge8q1x9c68zaddq6fk9bbooqsm6e3.sn9k8ckugx147umkzuehwssdjn7dqoy6fwmknxafcdio4y4c6i8ejk7d5bp9wmq.h-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: roof24_330645b27090 X-Filterd-Recvd-Size: 4274 Received: from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Mon, 31 Aug 2020 16:05:01 +0000 (UTC) Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07VG3o5D037246; Mon, 31 Aug 2020 16:04:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=OunsT9Nc2XfTQN0xbAJbz9ZbMi/lfCNrPIhCBDM+lVY=; b=JynFyNi/mBLNZrA0hffOMGipjaGEFEwofpUXzNviTB6pQcpXfsd19Y43/Dr4FqQ8FOyb xPHzDEZiVp7wpqUQACSDFB4vCfAh9B/8Vr3XHC3Xk9On5lBrgcIM4p7O81J+yvn8rwpA wR0AKT9L8wlfojhiMiJMlCIsLgBeHTARw1ENWjPaOe9UO5abSuVXd9Ue4bicZVZyU6KE N3Ah7CjZKZNzeaPz4UqkuIYmZoqMSdIiSM9jbaReVdXHte2ncJuZDuw/gz2adEwrYm01 RmUweoMw35KKTkeoC+qEujlMj9VBkS4N8nI3g8LAssZfOBgv3Mqh5f9hjyGKYwvBXsCU og== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 337qrhe5xg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Aug 2020 16:04:59 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07VG19Go073969; Mon, 31 Aug 2020 16:04:59 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 3380kku55j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 31 Aug 2020 16:04:58 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 07VG4woC014498; Mon, 31 Aug 2020 16:04:58 GMT Received: from revolver.jebus.ca (/23.233.25.87) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 31 Aug 2020 09:04:56 -0700 From: "Liam R. Howlett" To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Liam.Howlett@Oracle.com Subject: [PATCH] mm/mmap: Fix Add inline munmap_vma_range() for code readability Date: Mon, 31 Aug 2020 12:04:48 -0400 Message-Id: <20200831160448.2626027-1-Liam.Howlett@Oracle.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9730 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 adultscore=0 mlxscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008310095 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9730 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 spamscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008310095 X-Rspamd-Queue-Id: 14C6D100E690C X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 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: Add missing whitespace after the function, and fix comment arguments to match arguments. Signed-off-by: Liam R. Howlett --- mm/mmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index b59b4e5889b5c..c64f4fc410312 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -584,8 +584,8 @@ static inline struct vm_area_struct *vma_next(struct mm_struct *mm, * @start: The start of the range. * @len: The length of the range. * @pprev: pointer to the pointer that will be set to previous vm_area_struct - * @rb_link: the rb_node - * @rb_parent: the parent rb_node + * @link: the rb_node + * @parent: the parent rb_node * * Find all the vm_area_struct that overlap from @start to * @end and munmap them. Set @pprev to the previous vm_area_struct. @@ -604,6 +604,7 @@ munmap_vma_range(struct mm_struct *mm, unsigned long start, unsigned long len, return 0; } + static unsigned long count_vma_pages_range(struct mm_struct *mm, unsigned long addr, unsigned long end) {