kernel/vm: Make the first CACHE_TYPE be 1 instead of 0.

We store this value in a bitfield, so we can't use -1 to mean
invalid/unknown. Move the first value up so that 0 can be used
for that instead.
This commit is contained in:
Augustin Cavalier
2025-07-07 17:05:11 -04:00
parent 34e38174eb
commit 687e76e3f9
+1 -1
View File
@@ -25,7 +25,7 @@ struct ObjectCache;
enum {
CACHE_TYPE_RAM = 0,
CACHE_TYPE_RAM = 1,
CACHE_TYPE_VNODE,
CACHE_TYPE_DEVICE,
CACHE_TYPE_NULL