Skip to content

Commit 0f3f5db

Browse files
anoopcs9gd
authored andcommitted
vfs_default: Use already available SMBPROFILE_*_X macros
Signed-off-by: Anoop C S <anoopcs@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
1 parent e51fb76 commit 0f3f5db

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

source3/modules/vfs_default.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,8 @@ static void vfs_pread_done(struct tevent_req *subreq)
912912

913913
ret = pthreadpool_tevent_job_recv(subreq);
914914
TALLOC_FREE(subreq);
915-
SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes);
916-
SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes_x);
915+
SMBPROFILE_BYTES_ASYNC_END_X(state->profile_bytes,
916+
state->profile_bytes_x);
917917
talloc_set_destructor(state, NULL);
918918
if (ret != 0) {
919919
if (ret != EAGAIN) {
@@ -955,8 +955,7 @@ struct vfswrap_pwrite_state {
955955
bool posix_append;
956956

957957
struct vfs_aio_state vfs_aio_state;
958-
SMBPROFILE_BYTES_ASYNC_STATE(profile_bytes);
959-
SMBPROFILE_BYTES_ASYNC_STATE(profile_bytes_x);
958+
SMBPROFILE_BYTES_ASYNC_STATE_X(profile_bytes, profile_bytes_x);
960959
};
961960

962961
static void vfs_pwrite_do(void *private_data);
@@ -1188,8 +1187,8 @@ static void vfs_fsync_done(struct tevent_req *subreq)
11881187

11891188
ret = pthreadpool_tevent_job_recv(subreq);
11901189
TALLOC_FREE(subreq);
1191-
SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes);
1192-
SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes_x);
1190+
SMBPROFILE_BYTES_ASYNC_END_X(state->profile_bytes,
1191+
state->profile_bytes_x);
11931192
talloc_set_destructor(state, NULL);
11941193
if (ret != 0) {
11951194
if (ret != EAGAIN) {
@@ -3814,8 +3813,8 @@ static void vfswrap_getxattrat_done(struct tevent_req *subreq)
38143813

38153814
ret = pthreadpool_tevent_job_recv(subreq);
38163815
TALLOC_FREE(subreq);
3817-
SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes);
3818-
SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes_x);
3816+
SMBPROFILE_BYTES_ASYNC_END_X(state->profile_bytes,
3817+
state->profile_bytes_x);
38193818
talloc_set_destructor(state, NULL);
38203819
if (ret != 0) {
38213820
if (ret != EAGAIN) {

0 commit comments

Comments
 (0)