summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2024-12-16 00:29:38 +0300
committerJakub Kicinski <kuba@kernel.org>2024-12-18 04:45:17 +0300
commitd3c9510dc900e9ff3ea330189c0465c9f00fba18 (patch)
treeb94a7185d3229189c1bc99ceb8c97578fe5a2ea7 /tools/testing/selftests/net/lib/py/utils.py
parentd22f955cc2cb9684dd45396f974101f288869485 (diff)
downloadlinux-d3c9510dc900e9ff3ea330189c0465c9f00fba18.tar.xz
net: page_pool: rename page_pool_is_last_ref()
page_pool_is_last_ref() releases a reference while the name, to me at least, suggests it just checks if the refcount is 1. The semantics of the function are the same as those of atomic_dec_and_test() and refcount_dec_and_test(), so just use the _and_test() suffix. Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Jesper Dangaard Brouer <hawk@kernel.org> Link: https://patch.msgid.link/20241215212938.99210-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions