From 43f64955dc3a9910567061213fc282ed77560602 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 5 Jun 2023 15:55:10 +0200 Subject: [PATCH] smbd: Remove unused "pcd" from struct smb_request After the macros went away, nobody read this anymore Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/include/vfs.h | 2 -- source3/smbd/smb1_process.c | 5 ----- source3/smbd/smb2_process.c | 1 - 3 files changed, 8 deletions(-) diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 5ad15135ef9..31b657addee 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -814,8 +814,6 @@ struct smb_request { */ struct smbXsrv_session *session; - struct smb_perfcount_data pcd; - /* * Chained request handling */ diff --git a/source3/smbd/smb1_process.c b/source3/smbd/smb1_process.c index ea1c6f823c9..63b246cf69f 100644 --- a/source3/smbd/smb1_process.c +++ b/source3/smbd/smb1_process.c @@ -1314,11 +1314,6 @@ void construct_reply(struct smbXsrv_connection *xconn, req->inbuf = (uint8_t *)talloc_move(req, &inbuf); - /* we popped this message off the queue - keep original perf data */ - if (deferred_pcd) { - req->pcd = *deferred_pcd; - } - req->conn = switch_message(req->cmd, req); if (req->outbuf == NULL) { diff --git a/source3/smbd/smb2_process.c b/source3/smbd/smb2_process.c index 1344ccf0321..339fcb3502e 100644 --- a/source3/smbd/smb2_process.c +++ b/source3/smbd/smb2_process.c @@ -757,7 +757,6 @@ bool init_smb1_request(struct smb_request *req, req->smb2req = NULL; req->chain = NULL; req->posix_pathnames = lp_posix_pathnames(); - smb_init_perfcount_data(&req->pcd); /* Ensure we have at least wct words and 2 bytes of bcc. */ if (smb_size + req->wct*2 > req_size) {