]> Gentwo Git Trees - linux/.git/commit
smb: client: short-circuit negative lookups when parent dir is fully cached
authorHenrique Carvalho <henrique.carvalho@suse.com>
Tue, 9 Sep 2025 01:04:23 +0000 (22:04 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Oct 2025 03:42:15 +0000 (22:42 -0500)
commit316025335a2d41dc71c47abf6eb9a41987e94c0a
treed744ce24b02ee4daf2d7327929ed12b6c4ae7854
parent55580ad027a6764b7b1ee75f537d67811a06307f
smb: client: short-circuit negative lookups when parent dir is fully cached

When the parent directory has a valid and complete cached enumeration we
can assume that negative dentries are not present in the directory, thus
we can return without issuing a request.

This reduces traffic for common ENOENT when the directory entries are
cached.

Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/dir.c