[NTOSKRNL] Make the CcWaitForCurrentLazyWriterActivity() stub return success instead...
authorPierre Schweitzer <pierre@reactos.org>
Mon, 6 Nov 2017 20:45:55 +0000 (21:45 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 6 Nov 2017 20:45:55 +0000 (21:45 +0100)
Suggested by Thomas

drivers/filesystems/cdfs_new/fsctrl.c
drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff
ntoskrnl/cc/copy.c

index 562bdc6..31c4965 100755 (executable)
@@ -225,16 +225,6 @@ Return Value:
     CdReleaseVcb( IrpContext, Vcb );
 
     Status = CcWaitForCurrentLazyWriterActivity();
-#ifdef __REACTOS__
-    if (Status == STATUS_NOT_IMPLEMENTED)
-    {
-        Status = STATUS_SUCCESS;
-    }
-    else
-    {
-        DbgPrint("CcWaitForCurrentLazyWriterActivity got implemented! Remove hack in %s:%s\n", __FILE__, __LINE__);
-    }
-#endif
 
     //
     //  This is intentional. If we were able to get the Vcb before, just
index b27df56..a4bface 100644 (file)
@@ -895,23 +895,6 @@ Index: drivers/filesystems/cdfs_new/fsctrl.c
  CdIsVolumeDirty (
      IN PIRP_CONTEXT IrpContext,
      IN PIRP Irp
-@@ -225,6 +225,16 @@
-     CdReleaseVcb( IrpContext, Vcb );
-     Status = CcWaitForCurrentLazyWriterActivity();
-+#ifdef __REACTOS__
-+    if (Status == STATUS_NOT_IMPLEMENTED)
-+    {
-+        Status = STATUS_SUCCESS;
-+    }
-+    else
-+    {
-+        DbgPrint("CcWaitForCurrentLazyWriterActivity got implemented! Remove hack in %s:%s\n", __FILE__, __LINE__);
-+    }
-+#endif
-     //
-     //  This is intentional. If we were able to get the Vcb before, just
 @@ -918,7 +919,7 @@
  
          if (CdIsRemount( IrpContext, Vcb, &OldVcb )) {
index 9f6cead..15c6ceb 100644 (file)
@@ -524,7 +524,7 @@ CcWaitForCurrentLazyWriterActivity (
     VOID)
 {
     UNIMPLEMENTED;
-    return STATUS_NOT_IMPLEMENTED;
+    return STATUS_SUCCESS;
 }
 
 /*