[NTOS:CC] CcCanIWrite(): Use BYTES_TO_PAGES(Length)

This commit is contained in:
Serge Gautherie 2018-12-21 19:20:59 +01:00 committed by Pierre Schweitzer
parent 8785b10917
commit 4d1f13cf77

View file

@ -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;