fork: remove use of 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)
commit7ba85fba47bd89618fdb7dc322bdf823b1b56efb
treeb166f989698ce725884a16b12a34f547c4759745
parent8b57b11cca88f397035a95b9e12b03511847b0e8
fork: remove use of percpu_counter_sum_all

This effectively reverts the change made in commit f689054aace2
("percpu_counter: add percpu_counter_sum_all interface") as the
race condition percpu_counter_sum_all() was invented to avoid is
now handled directly in percpu_counter_sum() and nobody needs to
care about summing racing with cpu unplug anymore.

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>
kernel/fork.c