pastebin - collaborative debugging tool
rovema.kpaste.net RSS


sys/nfs41_driver.c: Switch to |MmCached| for testing
Posted by Anonymous on Sat 30th Sep 2023 14:23
raw | new post

  1. diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c
  2. index 618eee9..b03d196 100644
  3. --- a/sys/nfs41_driver.c
  4. +++ b/sys/nfs41_driver.c
  5. @@ -701,7 +701,7 @@ NTSTATUS marshal_nfs41_open(
  6.          if (entry->u.Open.EaMdl) {
  7.              entry->u.Open.EaBuffer =
  8.                  MmMapLockedPagesSpecifyCache(entry->u.Open.EaMdl,
  9. -                    UserMode, MmNonCached, NULL, TRUE, NormalPagePriority);
  10. +                    UserMode, MmCached, NULL, TRUE, NormalPagePriority);
  11.              if (entry->u.Open.EaBuffer == NULL) {
  12.                  print_error("MmMapLockedPagesSpecifyCache failed to map pages\n");
  13.                  status = STATUS_INSUFFICIENT_RESOURCES;
  14. @@ -758,7 +758,7 @@ NTSTATUS marshal_nfs41_rw(
  15.          entry->u.ReadWrite.MdlAddress->MdlFlags |= MDL_MAPPING_CAN_FAIL;
  16.          entry->buf =
  17.              MmMapLockedPagesSpecifyCache(entry->u.ReadWrite.MdlAddress,
  18. -                UserMode, MmNonCached, NULL, TRUE, NormalPagePriority);
  19. +                UserMode, MmCached, NULL, TRUE, NormalPagePriority);
  20.          if (entry->buf == NULL) {
  21.              print_error("MmMapLockedPagesSpecifyCache failed to map pages\n");
  22.              status = STATUS_INSUFFICIENT_RESOURCES;
  23. @@ -940,7 +940,7 @@ NTSTATUS marshal_nfs41_dirquery(
  24.      __try {
  25.          entry->u.QueryFile.mdl_buf =
  26.              MmMapLockedPagesSpecifyCache(entry->u.QueryFile.mdl,
  27. -                UserMode, MmNonCached, NULL, TRUE, NormalPagePriority);
  28. +                UserMode, MmCached, NULL, TRUE, NormalPagePriority);
  29.          if (entry->u.QueryFile.mdl_buf == NULL) {
  30.              print_error("MmMapLockedPagesSpecifyCache failed to map pages\n");
  31.              status = STATUS_INSUFFICIENT_RESOURCES;

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at