]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smb: client: use ParentLeaseKey in open_cached_dir
authorHenrique Carvalho <henrique.carvalho@suse.com>
Thu, 8 May 2025 16:37:50 +0000 (13:37 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 2 Jun 2025 01:46:45 +0000 (20:46 -0500)
commit0f220d30c6fd04d3616737d8cdb0f8c7a76ee995
tree28ef01418dd4b36c7b93d122cb08ce314df63615
parent51b78ffb803657fe38788d5715eee591cd7c0740
smb: client: use ParentLeaseKey in open_cached_dir

Implement ParentLeaseKey logic in open_cached_dir() by looking up the
parent cfid, copying its lease key into the fid struct, and setting
the appropriate lease flag.

Fixes: f047390a097e ("CIFS: Add create lease v2 context for SMB3")
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cached_dir.c