From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752087AbdFTTza (ORCPT ); Tue, 20 Jun 2017 15:55:30 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:42884 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751002AbdFTTz3 (ORCPT ); Tue, 20 Jun 2017 15:55:29 -0400 Date: Tue, 20 Jun 2017 15:55:26 -0400 (EDT) Message-Id: <20170620.155526.1175661303325942822.davem@davemloft.net> To: tj@kernel.org Cc: nborisov@suse.com, jbacik@fb.com, linux-kernel@vger.kernel.org, mgorman@techsingularity.net, clm@fb.com, dsterba@suse.com, darrick.wong@oracle.com, jack@suse.com, axboe@fb.com, linux-mm@kvack.org Subject: Re: [PATCH] percpu_counter: Rename __percpu_counter_add to percpu_counter_add_batch From: David Miller In-Reply-To: <20170620194759.GG21326@htj.duckdns.org> References: <20170620172835.GA21326@htj.duckdns.org> <1497981680-6969-1-git-send-email-nborisov@suse.com> <20170620194759.GG21326@htj.duckdns.org> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 20 Jun 2017 12:13:45 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tejun Heo Date: Tue, 20 Jun 2017 15:47:59 -0400 > From 104b4e5139fe384431ac11c3b8a6cf4a529edf4a Mon Sep 17 00:00:00 2001 > From: Nikolay Borisov > Date: Tue, 20 Jun 2017 21:01:20 +0300 > > Currently, percpu_counter_add is a wrapper around __percpu_counter_add > which is preempt safe due to explicit calls to preempt_disable. Given > how __ prefix is used in percpu related interfaces, the naming > unfortunately creates the false sense that __percpu_counter_add is > less safe than percpu_counter_add. In terms of context-safety, > they're equivalent. The only difference is that the __ version takes > a batch parameter. > > Make this a bit more explicit by just renaming __percpu_counter_add to > percpu_counter_add_batch. > > This patch doesn't cause any functional changes. > > tj: Minor updates to patch description for clarity. Cosmetic > indentation updates. > > Signed-off-by: Nikolay Borisov > Signed-off-by: Tejun Heo Acked-by: David S. Miller