Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp819454ybi; Sun, 30 Jun 2019 00:58:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBm8XJR8x9FqSAPYopbuG4mKq3rnTbOiWP1vcLWXY83yop6B8qpS1NOsgoiKLI7H6F6cvt X-Received: by 2002:a17:902:2bcb:: with SMTP id l69mr21979234plb.155.1561881525424; Sun, 30 Jun 2019 00:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561881525; cv=none; d=google.com; s=arc-20160816; b=hgCrjY9FWoQ64z2x2oZAfr/8cHS0BlZm9Xhk/jrE7YjfBEDjSylIQ3j7om0PawyCiC OesWGPuppwTfXcPG5rVETr7ZCaRQ0h5vQFyaO7gBvZp0XK2tkHBEpGvC5mWEgN4YIHC8 6NirP5UUR+nyWgV/0Fl5U4hjw3x/siHEPr4+t+V/nyuVJ6TOo0foC0nvzwMFrjbmEtdN /1eJYvvWEulgPaXMI3XINON/g/QTHJQGe21c4SHPMCi8ISId1svJ2TD0t6mcGz2sON5b Cr5ug6OV63Gz29Zrn7I1yW4g+89p3zE4MyEvGaCQF5bXAYWgyiZ1vrN1/6Mtrrh6kTQE 40Aw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B8cz0p1U2cEXshPnnN86RK5M/poNnk6a+Vr9fHBKncc=; b=DP/jdAcLQxhqvoe2RXYpm7nku11gq0TE1XmKBdJDDokrOGE2wl+vIw6LNeHSqWtxv9 vJlsZNybDtJz/QOap4SiFHNK8pp/4oDnLuZyUotzumfkaSbYpO2OvOfBco1uyX1B9iK8 3toYM9t5YJAOZ69cuDzpqlhq6o6A0+NTO6skjDDpcvwRhz/qqV8J7p5I6WJrwbq5qtYY xupv2VGzXS6XOCaligoLq+LDKTB62Tl8FXlcNeVIOL34M1Yb3mnWl97OHsb1WY+FtAdP hS6zOt9ePmmn0Xw1eQdVQNOXo3sPmLq/TO4q4WhlmzCOcOXLS454OmwNaJkx2EADpUAp S8Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ffjKb1Hr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si7092446pld.293.2019.06.30.00.58.29; Sun, 30 Jun 2019 00:58:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ffjKb1Hr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbfF3H5p (ORCPT + 99 others); Sun, 30 Jun 2019 03:57:45 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34438 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfF3H5p (ORCPT ); Sun, 30 Jun 2019 03:57:45 -0400 Received: by mail-pf1-f194.google.com with SMTP id c85so5035017pfc.1 for ; Sun, 30 Jun 2019 00:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B8cz0p1U2cEXshPnnN86RK5M/poNnk6a+Vr9fHBKncc=; b=ffjKb1HrgKUUctGTqK85NRnFp565HiDUpfM/Ri3+MUMkO2+p3U7fWXgil9oYaSsq7+ R35g5lkpuQa56AWLCtqStNh0+CWkoieCbOcwjqHB+shzdZ14Dh7p+x2K9eiF0vRwQ7/0 e+2Iah+RphOiCdvZW3mRXYNkcSPWu/GM9e4Li3JycDq2H9mFZyeD0spZ4bFDQhhrbwUu gbOQM6AdzjbT5Z0WOLG3lw2aLjNdsCgQTWhi3AS2ddpIooGHuX1bCzdpb2/dAbcfSva7 nwpLe4mkdhUUzellr9Da72OZFTdBq/aQtmFTBINd1L8BFuPZrxNh8T8sjmx1X0zHFmTb LqZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B8cz0p1U2cEXshPnnN86RK5M/poNnk6a+Vr9fHBKncc=; b=ZumIBeEQliUWOpc0cvcNXKcEdD0GzcAPJ4CZoJFXWhwCw3mYEciw8KE+UmDyL0xoe7 SOWj8m8OL0sGS8nv1h3NKmyXn8Zc+CrwR/WcMuUfYYpS0nOPoLxrvYr2AP6wW8Q9R6nP 9FIlF5+i4NdWrOe5TilOfzZEIC8QZsyEAjEddQhfOjssAylWv4o+1+JZZxfOxKXWclqp uJoJ/ocKfh/BNDbTd82EoJaItARhPMCQWYu42X6EivLEFCWtA5bHTAY9vOu9wWATF/+0 oWHy3FjM6ga7tLHsIoivXi9hFv3yQ8vPlf07GPZJ8Yp/fmc3CF0F+of3tf8d6asZPeUc TBsw== X-Gm-Message-State: APjAAAV2s7yuhfry7gqK7VlL0Iqa2AtjnPLGZRzYJwRjakBYCSMFBiOq AiRit6ess6rgT0ZY4rkVYBg= X-Received: by 2002:a17:90a:35e5:: with SMTP id r92mr24134932pjb.34.1561881464652; Sun, 30 Jun 2019 00:57:44 -0700 (PDT) Received: from localhost.localdomain.localdomain ([2408:823c:c11:648:b8c3:8577:bf2f:2]) by smtp.gmail.com with ESMTPSA id w10sm5989637pgs.32.2019.06.30.00.57.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 00:57:44 -0700 (PDT) From: Pengfei Li To: akpm@linux-foundation.org, peterz@infradead.org, urezki@gmail.com Cc: rpenyaev@suse.de, mhocko@suse.com, guro@fb.com, aryabinin@virtuozzo.com, rppt@linux.ibm.com, mingo@kernel.org, rick.p.edgecombe@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Pengfei Li Subject: [PATCH 3/5] mm/vmalloc.c: Rename function __find_vmap_area() for readability Date: Sun, 30 Jun 2019 15:56:48 +0800 Message-Id: <20190630075650.8516-4-lpf.vector@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190630075650.8516-1-lpf.vector@gmail.com> References: <20190630075650.8516-1-lpf.vector@gmail.com> 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 Rename function __find_vmap_area to __search_va_from_busy_tree to indicate that it is searching in the *BUSY* tree. Signed-off-by: Pengfei Li --- mm/vmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index a5065fcb74d3..1beb5bcfb450 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -399,7 +399,7 @@ static void purge_vmap_area_lazy(void); static BLOCKING_NOTIFIER_HEAD(vmap_notify_list); static unsigned long lazy_max_pages(void); -static struct vmap_area *__find_vmap_area(unsigned long addr) +static struct vmap_area *__search_va_from_busy_tree(unsigned long addr) { struct rb_node *n = vmap_area_root.rb_node; @@ -1313,7 +1313,7 @@ static struct vmap_area *find_vmap_area(unsigned long addr) struct vmap_area *va; spin_lock(&vmap_area_lock); - va = __find_vmap_area(addr); + va = __search_va_from_busy_tree(addr); spin_unlock(&vmap_area_lock); return va; -- 2.21.0