]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_new: fix END_PROFILE/END_PROFILE_X mismatch in ftruncate
authorShweta Sodani <ssodani@redhat.com>
Mon, 6 Apr 2026 05:50:55 +0000 (11:20 +0530)
committerAnoop C S <anoopcs@samba.org>
Tue, 21 Apr 2026 21:15:30 +0000 (21:15 +0000)
END_PROFILE omits the per-service counter; replace with END_PROFILE_X
to match the START_PROFILE_X on the strict_allocate path.

Signed-off-by: Shweta Sodani <ssodani@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
source3/modules/vfs_ceph_new.c

index d830281952bcdd0132bc40006445572ee37c61ce..8989ba20d2b9c7fd10b4c84a65d32be3da927705 100644 (file)
@@ -3855,7 +3855,7 @@ static int vfs_ceph_ftruncate(struct vfs_handle_struct *handle,
                  (intmax_t)len);
 
        if (lp_strict_allocate(SNUM(fsp->conn))) {
-               END_PROFILE(syscall_ftruncate);
+               END_PROFILE_X(syscall_ftruncate);
                return strict_allocate_ftruncate(handle, fsp, len);
        }