smb: client: use ParentLeaseKey in cifs_do_create
authorHenrique Carvalho <henrique.carvalho@suse.com>
Wed, 28 May 2025 20:30:03 +0000 (17:30 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 2 Jun 2025 01:46:45 +0000 (20:46 -0500)
commit037e1bae588eacf98a0fedf52a7b72f14bbf0b26
treed0d51ce6aebda237e0b8e17669960adef1eaa0c9
parent0f220d30c6fd04d3616737d8cdb0f8c7a76ee995
smb: client: use ParentLeaseKey in cifs_do_create

Implement ParentLeaseKey logic in cifs_do_create() 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/dir.c