]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph_new: improve mount cache-entry ref-count
authorShachar Sharon <ssharon@redhat.com>
Thu, 5 Sep 2024 14:14:59 +0000 (17:14 +0300)
committerJule Anger <janger@samba.org>
Mon, 17 Feb 2025 16:09:09 +0000 (16:09 +0000)
commit00d505ae38e935d4594041533363050523139bbd
treeed41ab1508e3247d97895f3fe33a2f0410a01bef
parent3d934ff47e35e7f3b20b111b3ed3bfd97615e7b2
vfs_ceph_new: improve mount cache-entry ref-count

Use singed int32_t for cached mount-entries reference counting. Define
helper function for inc/dec ref-count which also provides proper
logging. Prefer boolean return-value for 'cephmount_cache_remove' as
'int' is often used as error indicator within the context of libcephfs
and this VFS module.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15703

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 29a9d18d2d21842bb38bcdc6b9e366abac458ed9)
source3/modules/vfs_ceph_new.c