]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cifs: Optimize CIFSFindFirst() response when not searching
authorPali Rohár <pali@kernel.org>
Mon, 30 Dec 2024 19:55:53 +0000 (20:55 +0100)
committerSteve French <stfrench@microsoft.com>
Sun, 27 Jul 2025 21:59:59 +0000 (16:59 -0500)
commitb62a206bfbf3e9c52abc28253bf3baedc8d99880
treeabf84eaf698f39e33843977610c696f38b925329
parentb460249b9a1dab7a9f58483e5349d045ad6d585c
cifs: Optimize CIFSFindFirst() response when not searching

When not searching for child entries with msearch wildcard pattern then ask
server just for one output entry. There is no need to ask for more entries
as we are interested only for one search result, as we are doing query on
path.

CIFSFindFirst() with msearch=false is called by the cifs_query_path_info()
function.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifssmb.c