]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_new: Use already available SMBPROFILE_*_X macros
authorAnoop C S <anoopcs@samba.org>
Wed, 2 Jul 2025 09:34:27 +0000 (15:04 +0530)
committerGünther Deschner <gd@samba.org>
Tue, 12 Aug 2025 07:26:38 +0000 (07:26 +0000)
Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/modules/vfs_ceph_new.c

index 996edc734581bae799121c449f81619bee320931..7112719a3993b61c205d1b7c65701e3996d65e89 100644 (file)
@@ -2473,8 +2473,7 @@ struct vfs_ceph_aio_state {
        struct timespec finish_time;
        ssize_t result;
        struct vfs_aio_state vfs_aio_state;
-       SMBPROFILE_BYTES_ASYNC_STATE(profile_bytes);
-       SMBPROFILE_BYTES_ASYNC_STATE(profile_bytes_x);
+       SMBPROFILE_BYTES_ASYNC_STATE_X(profile_bytes, profile_bytes_x);
 };
 
 static void vfs_ceph_aio_start(struct vfs_ceph_aio_state *state)
@@ -2745,8 +2744,8 @@ static ssize_t vfs_ceph_pread_recv(struct tevent_req *req,
                  state->off,
                  state->len);
 
-       SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes);
-       SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes_x);
+       SMBPROFILE_BYTES_ASYNC_END_X(state->profile_bytes,
+                                    state->profile_bytes_x);
 
        if (tevent_req_is_unix_error(req, &vfs_aio_state->error)) {
                goto out;
@@ -2861,8 +2860,8 @@ static ssize_t vfs_ceph_pwrite_recv(struct tevent_req *req,
                  state->off,
                  state->len);
 
-       SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes);
-       SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes_x);
+       SMBPROFILE_BYTES_ASYNC_END_X(state->profile_bytes,
+                                    state->profile_bytes_x);
 
        if (tevent_req_is_unix_error(req, &vfs_aio_state->error)) {
                goto out;
@@ -3064,8 +3063,8 @@ static int vfs_ceph_fsync_recv(struct tevent_req *req,
                  state->len,
                  state->result);
 
-       SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes);
-       SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes_x);
+       SMBPROFILE_BYTES_ASYNC_END_X(state->profile_bytes,
+                                    state->profile_bytes_x);
 
        if (tevent_req_is_unix_error(req, &vfs_aio_state->error)) {
                goto out;