mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:45:50 +00:00
[NTOS:CC] Avoid some magic numbers.
This commit is contained in:
parent
b8741e2bb3
commit
56e2bf2f92
3 changed files with 6 additions and 3 deletions
|
@ -228,7 +228,7 @@ CcScheduleReadAhead (
|
|||
/* It's active now!
|
||||
* Be careful with the mask, you don't want to mess with node code
|
||||
*/
|
||||
InterlockedOr((volatile long *)&PrivateCacheMap->UlongFlags, 0x10000);
|
||||
InterlockedOr((volatile long *)&PrivateCacheMap->UlongFlags, PRIVATE_CACHE_MAP_READ_AHEAD_ACTIVE);
|
||||
KeReleaseSpinLock(&PrivateCacheMap->ReadAheadSpinLock, OldIrql);
|
||||
|
||||
/* Get a work item */
|
||||
|
@ -250,7 +250,7 @@ CcScheduleReadAhead (
|
|||
|
||||
/* Fail path: lock again, and revert read ahead active */
|
||||
KeAcquireSpinLock(&PrivateCacheMap->ReadAheadSpinLock, &OldIrql);
|
||||
InterlockedAnd((volatile long *)&PrivateCacheMap->UlongFlags, 0xFFFEFFFF);
|
||||
InterlockedAnd((volatile long *)&PrivateCacheMap->UlongFlags, ~PRIVATE_CACHE_MAP_READ_AHEAD_ACTIVE);
|
||||
}
|
||||
|
||||
/* Done (fail) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue