]> www.infradead.org Git - users/dwmw2/linux.git/commit
ucounts: Use atomic_long_sub_return for clarity
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 18 Oct 2021 16:22:20 +0000 (11:22 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 20 Oct 2021 15:45:34 +0000 (10:45 -0500)
commit32342701b4ba57a6fd77e8aca2f65f68c0fa1da6
tree1c26835ca75bfe43efe4ad4bf88b6bdc15abcd1d
parentda70d3109e74adf6ae9f8d1f6c7c0c9735d314ba
ucounts: Use atomic_long_sub_return for clarity

Decrement ucounts using atomic_long_sub_return to make it
clear the point is for the ucount to decrease.

Not a big deal but it should make it easier to catch bugs.

Suggested-by: Yu Zhao <yuzhao@google.com>
Link: https://lkml.kernel.org/r/87k0iaqkqj.fsf_-_@disp2133
Tested-by: Yu Zhao <yuzhao@google.com>
Reviewed-by: Alexey Gladkov <legion@kernel.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/ucount.c