cifs: use compounding for open and first query-dir for readdir()
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 8 Jan 2020 03:08:06 +0000 (13:08 +1000)
committerSteve French <stfrench@microsoft.com>
Mon, 27 Jan 2020 01:24:16 +0000 (19:24 -0600)
commit37478608f0eb6f232e62791683875a1f557b1b10
treef268d1d1f5a3fb1780e402edab67b6b2ad6a2aad
parentaf08f9e79c602835f975f0f8f6e90fc48848bffa
cifs: use compounding for open and first query-dir for readdir()

Combine the initial SMB2_Open and the first SMB2_Query_Directory in a compound.
This shaves one round-trip of each directory listing, changing it from 4 to 3
for small directories.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsproto.h
fs/cifs/smb2ops.c