]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/SimpleLock: add has_xlock_by()
authorMax Kellermann <max.kellermann@ionos.com>
Wed, 30 Oct 2024 07:02:39 +0000 (08:02 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Mon, 9 Dec 2024 11:58:22 +0000 (12:58 +0100)
commitfc48d88c766e536e7926a3c5dd163289f0d723a9
tree131f6a169b1051ae9f9e929ee2c70a99f36a2a80
parent99f58a5fa1188094f9e4eaaf2208331b52ef2ba8
mds/SimpleLock: add has_xlock_by()

This replaces get_xlock_by() in cases where only a not-nullptr check
is needed; this eliminates costly implicit reference counter
manipulations.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/mds/LocalLockC.h
src/mds/SimpleLock.h