diff --git a/ntoskrnl/cc/copy.c b/ntoskrnl/cc/copy.c index 4509e2e43b7..41980b87d45 100644 --- a/ntoskrnl/cc/copy.c +++ b/ntoskrnl/cc/copy.c @@ -685,8 +685,7 @@ CcCanIWrite ( Length = BytesToWrite; } - /* Convert it to pages count */ - Pages = (Length + PAGE_SIZE - 1) >> PAGE_SHIFT; + Pages = BYTES_TO_PAGES(Length); /* By default, assume limits per file won't be hit */ PerFileDefer = FALSE;