From 4cdbdb5682d0f19dacb44f989b6a2fe42a721e6b Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Tue, 9 Feb 2016 14:01:57 -0800 Subject: [PATCH] sys: IRP_MJ_CLEANUP: comment --- src/sys/cleanup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sys/cleanup.c b/src/sys/cleanup.c index eeb847b8..cc2143cf 100644 --- a/src/sys/cleanup.c +++ b/src/sys/cleanup.c @@ -63,6 +63,11 @@ static NTSTATUS FspFsvolCleanup( FspFileNodeClose(FileNode, FileObject, &DeletePending); + /* + * The FileNode is no longer in the Context table, therefore we do not + * need to protect its FileName against renames! + */ + /* create the user-mode file system request; MustSucceed because IRP_MJ_CLEANUP cannot fail */ FspIopCreateRequestMustSucceed(Irp, &FileNode->FileName, 0, &Request); Request->Kind = FspFsctlTransactCleanupKind;