pcpcntr: remove percpu_counter_sum_all()
authorDave Chinner <dchinner@redhat.com>
Thu, 16 Mar 2023 00:31:03 +0000 (17:31 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 19 Mar 2023 17:02:04 +0000 (10:02 -0700)
commite9b60c7f97130795c7aa81a649ae4b93a172a277
tree10a41593e7fb0e16e113c35d2075f30f9751a45c
parent7ba85fba47bd89618fdb7dc322bdf823b1b56efb
pcpcntr: remove percpu_counter_sum_all()

percpu_counter_sum_all() is now redundant as the race condition it
was invented to handle is now dealt with by percpu_counter_sum()
directly and all users of percpu_counter_sum_all() have been
removed.

Remove it.

This effectively reverts the changes made in f689054aace2
("percpu_counter: add percpu_counter_sum_all interface") except for
the cpumask iteration that fixes percpu_counter_sum() made earlier
in this series.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
include/linux/percpu_counter.h
lib/percpu_counter.c