mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOS:CC] CcCanIWrite(): Use BYTES_TO_PAGES(Length)
This commit is contained in:
parent
8785b10917
commit
4d1f13cf77
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue