summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/smb2pdu.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2025-06-01 18:01:54 +0200
committerSteve French <stfrench@microsoft.com>2025-10-09 23:01:24 -0500
commitfa9fe8715055f8b9bcee38904065b2f1eb9197f0 (patch)
tree7344cd2e8d40e2154aeb84f62336dd14754b1e92 /fs/smb/client/smb2pdu.c
parentcifs: Add fallback code path for cifs_mkdir_setinfo() (diff)
downloadlinux-fa9fe8715055f8b9bcee38904065b2f1eb9197f0.tar.gz
linux-fa9fe8715055f8b9bcee38904065b2f1eb9197f0.zip
cifs: Add comments for DeletePending assignments in open functions
On more places is set DeletePending member to 0. Add comments why is 0 the correct value. Paths in DELETE_PENDING state cannot be opened by new calls. So if the newly issued open for that path succeed then it means that the path cannot be in DELETE_PENDING state. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/smb/client/smb2pdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c
index 42e2d4ea344d..b0739a2661bf 100644
--- a/fs/smb/client/smb2pdu.c
+++ b/fs/smb/client/smb2pdu.c
@@ -3277,7 +3277,7 @@ replay_again:
buf->EndOfFile = rsp->EndofFile;
buf->Attributes = rsp->FileAttributes;
buf->NumberOfLinks = cpu_to_le32(1);
- buf->DeletePending = 0;
+ buf->DeletePending = 0; /* successful open = not delete pending */
}