From patchwork Mon Mar 30 02:32:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 11464465 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 D6C561392 for ; Mon, 30 Mar 2020 02:33:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9ABDD2078B for ; Mon, 30 Mar 2020 02:33:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="rxDfrhuk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9ABDD2078B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9179B6B0007; Sun, 29 Mar 2020 22:33:33 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 879CB6B0008; Sun, 29 Mar 2020 22:33:33 -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 6F34C6B0037; Sun, 29 Mar 2020 22:33:33 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 573136B0007 for ; Sun, 29 Mar 2020 22:33:33 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 51B0F8248D7C for ; Mon, 30 Mar 2020 02:33:33 +0000 (UTC) X-FDA: 76650457506.08.badge77_59369116bf253 X-Spam-Summary: 2,0,0,5dea9318ae8824fa,d41d8cd98f00b204,joel@joelfernandes.org,,RULES_HIT:41:355:379:541:800:960:965:966:973:988:989:1260:1311:1314:1345:1359:1437:1515:1534:1541:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3867:3868:3871:3872:3874:4250:4321:4385:4390:4395:5007:6261:6653:6742:7514:7576:10004:11026:11658:11914:12043:12296:12297:12438:12517:12519:12555:12895:12986:13069:13311:13357:13894:13972:14096:14181:14384:14394:14721:21080:21444:21451:21627:21990:30054,0,RBL:209.85.160.196:@joelfernandes.org:.lbl8.mailshell.net-66.100.201.201 62.2.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: badge77_59369116bf253 X-Filterd-Recvd-Size: 4746 Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Mon, 30 Mar 2020 02:33:32 +0000 (UTC) Received: by mail-qt1-f196.google.com with SMTP id t9so13906375qto.9 for ; Sun, 29 Mar 2020 19:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j9u1d7Nq8RT0AOHNZvylOBJ81hqFkLhdoH0L2zGb794=; b=rxDfrhuk8LqW6ZnmW+LnImOtpzM2Zw9S69J/P+yG2hd6Vw5mMl8yBevuQ6ntcQkpt1 6sS/aa7qsRAXfO8SA/uVHNRUM3XnlchLsYPPO6idkXfPZNHXzbwNfmaWP7vJXU7yG8GR cAXpIptCUsYctVOx9/SD1kmPf6JJ5CIL5InT4= 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=j9u1d7Nq8RT0AOHNZvylOBJ81hqFkLhdoH0L2zGb794=; b=RALkGkHyJtQAOVpea+44Bd8RW111d6FXhYKL8o3ZCTGi9ZfJR/oqOJhdolbrdlsybZ DxcvG1uNV4XHuLRJDqQQRYfBS8WNXgI+Bdq+d1ncu9fsC2R9HZROzIGX/J/t0+BVgSAr qss3V1HZh6o9rBxYOn431krh5NaiSJ7RbkG7xjeFQISwN2kxJ3fUyEt4qBbMMAnKVoFL wnXyrsHXmZwieVgr1ds85mP0akAnOZQjxJoGL1KCBo1/nxCa8t/WeH3ifEM7KU9f5vi1 x01LWchS5bCpRMYtFUgKBEbqLlaNX1phVsc9vUTVeFgSBwXnK8O4NKXx+kyQsOU5Jdi2 GZjw== X-Gm-Message-State: ANhLgQ0DAxMwc27eZhAwmPbU1zJczKcij39CUbiDr9k6ke31FSMUeIq8 uUxBOIqolm08J+rsgkD4OcooCg== X-Google-Smtp-Source: ADFU+vtJ/nFZMvAXPR8p2akuS9nHt322wcY7VnnK+V09LMOq6oHXy/eGbZOe0mEFY2W1AiDcgsCNJg== X-Received: by 2002:ac8:72ce:: with SMTP id o14mr10086333qtp.226.1585535612029; Sun, 29 Mar 2020 19:33:32 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id q15sm10030625qtj.83.2020.03.29.19.33.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2020 19:33:31 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Uladzislau Rezki (Sony)" , Joel Fernandes , Andrew Morton , Ingo Molnar , Josh Triplett , Lai Jiangshan , linux-mm@kvack.org, Mathieu Desnoyers , "Paul E. McKenney" , "Rafael J. Wysocki" , rcu@vger.kernel.org, Steven Rostedt Subject: [PATCH 01/18] mm/list_lru.c: Rename kvfree_rcu() to local variant Date: Sun, 29 Mar 2020 22:32:31 -0400 Message-Id: <20200330023248.164994-2-joel@joelfernandes.org> X-Mailer: git-send-email 2.26.0.rc2.310.g2932bb562d-goog In-Reply-To: <20200330023248.164994-1-joel@joelfernandes.org> References: <20200330023248.164994-1-joel@joelfernandes.org> MIME-Version: 1.0 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: From: "Uladzislau Rezki (Sony)" Rename kvfree_rcu() function to the kvfree_rcu_local() one. The aim is to introduce the public API that would conflict with this one. Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Joel Fernandes (Google) Signed-off-by: Joel Fernandes (Google) --- mm/list_lru.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/list_lru.c b/mm/list_lru.c index 0f1f6b06b7f36..386424688f805 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c @@ -383,14 +383,14 @@ static void memcg_destroy_list_lru_node(struct list_lru_node *nlru) struct list_lru_memcg *memcg_lrus; /* * This is called when shrinker has already been unregistered, - * and nobody can use it. So, there is no need to use kvfree_rcu(). + * and nobody can use it. So, there is no need to use kvfree_rcu_local(). */ memcg_lrus = rcu_dereference_protected(nlru->memcg_lrus, true); __memcg_destroy_list_lru_node(memcg_lrus, 0, memcg_nr_cache_ids); kvfree(memcg_lrus); } -static void kvfree_rcu(struct rcu_head *head) +static void kvfree_rcu_local(struct rcu_head *head) { struct list_lru_memcg *mlru; @@ -429,7 +429,7 @@ static int memcg_update_list_lru_node(struct list_lru_node *nlru, rcu_assign_pointer(nlru->memcg_lrus, new); spin_unlock_irq(&nlru->lock); - call_rcu(&old->rcu, kvfree_rcu); + call_rcu(&old->rcu, kvfree_rcu_local); return 0; }