]> git.baikalelectronics.ru Git - kernel.git/commit
percpu_counter: Rename __percpu_counter_add to percpu_counter_add_batch
authorNikolay Borisov <nborisov@suse.com>
Tue, 20 Jun 2017 18:01:20 +0000 (21:01 +0300)
committerTejun Heo <tj@kernel.org>
Tue, 20 Jun 2017 19:42:32 +0000 (15:42 -0400)
commit64fe73569e7d02f1c6e5eb7d6e7deeaf9773a8e5
treee8a0157f2294f006f31e535949327b3484a5dcb8
parenteff6204437f822bc446e561edd459ff744f245e6
percpu_counter: Rename __percpu_counter_add to percpu_counter_add_batch

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 <nborisov@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Chris Mason <clm@fb.com>
Cc: Josef Bacik <jbacik@fb.com>
Cc: David Sterba <dsterba@suse.com>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Jan Kara <jack@suse.com>
Cc: Jens Axboe <axboe@fb.com>
Cc: linux-mm@kvack.org
Cc: "David S. Miller" <davem@davemloft.net>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/xfs/xfs_mount.c
include/linux/backing-dev.h
include/linux/blk-cgroup.h
include/linux/mman.h
include/linux/percpu_counter.h
include/net/inet_frag.h
lib/flex_proportions.c
lib/percpu_counter.c