From: Volker Lendecke Date: Wed, 28 Jun 2023 09:48:34 +0000 (+0200) Subject: smbd: Save 76 bytes of .text X-Git-Tag: talloc-2.4.1~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3ce869d4f46d9ee44150e156ff24532261344ce;p=thirdparty%2Fsamba.git smbd: Save 76 bytes of .text 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 462e0d7ecac..14842b0a6ef 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -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,