Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3909148pxa; Sun, 9 Aug 2020 16:25:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0YU8CI9H85tOxTsKtaAXCeKyHbWiidU9RriAcZ9JpabWfYwJe4l90BSWtjkdkXNozYX1N X-Received: by 2002:a17:906:e0d:: with SMTP id l13mr20235961eji.434.1597015503836; Sun, 09 Aug 2020 16:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597015503; cv=none; d=google.com; s=arc-20160816; b=Y1+knvaGXk6hkaWy5LTRYmFt4GneqWkl2iA1VgsK73DlaiCBcykAQorbUfqggIqkNi XFiZZTLwq2ldbw4Qp0DD0oyo4Wg9NcoTh1tcYRHwDen0Nv2zPeaz+ElTh/T8IK+QVGVP 1eCbvtRf51n6BPywOdnFzYEBNZq81WAIjl1wUq1e8cWzk0kN1vYZ8HIzZ8htP+icSeoc 8H4OGCbdeOMbB9qO6hnCxr3BZG++4p7L8btDe1NuBuO16LEX5SJXjVy7/ADTabh6QqiU 63Man9FvFnHCCfCBjDE1U7D5Y2K/fKl0soY5z8JkiYEWoEDbops6onfe9Tt7MRuG6IJC xi7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=bJAlZSpR/7WJEuuCsvRXPri/ulhqaflBbFcFYcIeNaI=; b=ruwvtXY7o1em7kIS2mda72Q2ZylzOqgd4cqewekdmuKpwLEZz+ERMvZqn1l7HNrG83 ic71kftRDI2KC7Llf/CL/PqJerLiV109uFYjDH9zYnnO44Vl8UtDVLQl1jiU6h8RxKGn /njGLRsslej50THpcu5EWOixR4bqzMHReN/RDsEyjgvi8sX+IlsV4+P8TeL1skYVwUNQ aXxM2eg3wLti0E2wjdW2AMhAqQnehvfIim/IqBnlhSQcM2Ndcs9xoJurtXra9pBBqd/O AH7akRYIOb16yAL+rduEjWnx2rEAWw8h8jOHVl1YPbZtnHmdbgkYaICaEUEfxNPg0Hkw UHzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq1si9906806ejb.246.2020.08.09.16.24.40; Sun, 09 Aug 2020 16:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726350AbgHIXVF (ORCPT + 99 others); Sun, 9 Aug 2020 19:21:05 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:42078 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726123AbgHIXVF (ORCPT ); Sun, 9 Aug 2020 19:21:05 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R491e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0U5EGtLh_1597015262; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U5EGtLh_1597015262) by smtp.aliyun-inc.com(127.0.0.1); Mon, 10 Aug 2020 07:21:03 +0800 From: Wei Yang To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 1/2] mm/mmap: rename __vma_unlink_common() to __vma_unlink() Date: Mon, 10 Aug 2020 07:20:56 +0800 Message-Id: <20200809232057.23477-1-richard.weiyang@linux.alibaba.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __vma_unlink_common() and __vma_unlink() are counterparts. Since there is not function named __vma_unlink(), let's rename it to __vma_unlink() to make the code more self-explain and easy for audience to understand. Otherwise we may expect there are several variants of vma_unlink and __vma_unlink_common() is used by them. Signed-off-by: Wei Yang --- mm/mmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index dcdab2675a21..ec780925da94 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -677,7 +677,7 @@ static void __insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma) mm->map_count++; } -static __always_inline void __vma_unlink_common(struct mm_struct *mm, +static __always_inline void __vma_unlink(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *ignore) { @@ -859,7 +859,7 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start, * us to remove next before dropping the locks. */ if (remove_next != 3) - __vma_unlink_common(mm, next, next); + __vma_unlink(mm, next, next); else /* * vma is not before next if they've been @@ -870,7 +870,7 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start, * "next" (which is stored in post-swap() * "vma"). */ - __vma_unlink_common(mm, next, vma); + __vma_unlink(mm, next, vma); if (file) __remove_shared_vm_struct(next, file, mapping); } else if (insert) { -- 2.20.1 (Apple Git-117)