https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e88eeb21af4b778f19b10e2d0e9f1c4361d6838d
commit e88eeb21af4b778f19b10e2d0e9f1c4361d6838d Author: Pierre Schweitzer <pie...@reactos.org> AuthorDate: Mon Nov 6 21:45:55 2017 +0100 [NTOSKRNL] Make the CcWaitForCurrentLazyWriterActivity() stub return success instead of hacking FSDs. Suggested by Thomas --- drivers/filesystems/cdfs_new/fsctrl.c | 10 ---------- drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff | 17 ----------------- ntoskrnl/cc/copy.c | 2 +- 3 files changed, 1 insertion(+), 28 deletions(-) diff --git a/drivers/filesystems/cdfs_new/fsctrl.c b/drivers/filesystems/cdfs_new/fsctrl.c index 562bdc6482..31c4965f9f 100755 --- a/drivers/filesystems/cdfs_new/fsctrl.c +++ b/drivers/filesystems/cdfs_new/fsctrl.c @@ -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 diff --git a/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff b/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff index b27df5692d..a4bface2e4 100644 --- a/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff +++ b/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff @@ -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 )) { diff --git a/ntoskrnl/cc/copy.c b/ntoskrnl/cc/copy.c index 9f6cead1c9..15c6ceb81b 100644 --- a/ntoskrnl/cc/copy.c +++ b/ntoskrnl/cc/copy.c @@ -524,7 +524,7 @@ CcWaitForCurrentLazyWriterActivity ( VOID) { UNIMPLEMENTED; - return STATUS_NOT_IMPLEMENTED; + return STATUS_SUCCESS; } /*