Correct a small syntax error
This commit is contained in:
parent
bebfc360da
commit
fda05e9e23
|
|
@ -59,9 +59,9 @@ impl<M: PageMeta> Page<M> {
|
||||||
let vaddr = mapping::page_to_meta::<PagingConsts>(paddr);
|
let vaddr = mapping::page_to_meta::<PagingConsts>(paddr);
|
||||||
let ptr = vaddr as *const MetaSlot;
|
let ptr = vaddr as *const MetaSlot;
|
||||||
|
|
||||||
// SAFETY: The aligned pointer points to a initialized `MetaSlot`.
|
// SAFETY: The aligned pointer points to an initialized `MetaSlot`.
|
||||||
let usage = unsafe { &(*ptr).usage };
|
let usage = unsafe { &(*ptr).usage };
|
||||||
// SAFETY: The aligned pointer points to a initialized `MetaSlot`.
|
// SAFETY: The aligned pointer points to an initialized `MetaSlot`.
|
||||||
let ref_count = unsafe { &(*ptr).ref_count };
|
let ref_count = unsafe { &(*ptr).ref_count };
|
||||||
|
|
||||||
usage
|
usage
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue