]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Save 76 bytes of .text
authorVolker Lendecke <vl@samba.org>
Wed, 28 Jun 2023 09:48:34 +0000 (11:48 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 3 Jul 2023 19:40:35 +0000 (19:40 +0000)
Probably not really measurable, but as this is a pretty frequently
accessed table, maybe this saves us some cache misses. And it's very
cheap to get :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_server.c

index 462e0d7ecacadfe1bb5768f0bf4d63192929312f..14842b0a6efc0e061a6ff9abcd3be5c47e8ad1dd 100644 (file)
@@ -62,11 +62,11 @@ static NTSTATUS smbd_smb2_flush_send_queue(struct smbXsrv_connection *xconn);
 
 static const struct smbd_smb2_dispatch_table {
        uint16_t opcode;
-       bool need_session;
-       bool need_tcon;
-       bool as_root;
        uint16_t fileid_ofs;
-       bool modify;
+       bool need_session : 1;
+       bool need_tcon : 1;
+       bool as_root : 1;
+       bool modify : 1;
 } smbd_smb2_table[] = {
        {
                .opcode = SMB2_OP_NEGPROT,