]> git.ipfire.org Git - thirdparty/linux.git/commit
cifs: define variable sized buffer for querydir responses
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 10 Mar 2026 10:30:17 +0000 (16:00 +0530)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Jun 2026 21:49:02 +0000 (16:49 -0500)
commitf53208233b2acaafe2af99c63c02481b2f5bcb39
treef5e0f09ce3bb9aefd3d6f0adc3a7e7644df7c313
parent99cd0a6eeb6c20fc6b914e7ce192c6b08e1ef906
cifs: define variable sized buffer for querydir responses

QueryDirectory responses today are stored in one of two fixed
sized buffers: smallbuf (448 bytes) or bigbuf (16KB). These are
borrowed from server struct and are not sufficient for large-sized
query dir operations.

With this change we will now define a new buffer type specifically
for cifs_search_info to hold variable sized responses. These will
be allocated by kmalloc and freed by kfree.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsglob.h
fs/smb/client/file.c
fs/smb/client/readdir.c
fs/smb/client/smb2pdu.c