`hugetlb`: FIXED `HUGE_DEFAULT` producing invalid flags. (NOTE: Back-port this & other flags fixes to previous version...)

Fortune for mapped-file's current commit: Curse − 凶
master
Avril 3 weeks ago
parent 999e103cd2
commit 1c868e2a96
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -73,7 +73,7 @@ impl MapHugeFlag
}
/// The kernel's default huge-page size.
pub const HUGE_DEFAULT: Self = Self(MAP_HUGE_SHIFT);
pub const HUGE_DEFAULT: Self = Self(0 << MAP_HUGE_SHIFT);
/// Predefined `MAP_HUGE_2MB` mask,
pub const HUGE_2MB: Self = Self(libc::MAP_HUGE_2MB);
/// Predefined `MAP_HUGE_1GB` mask,

Loading…
Cancel
Save