mm/zone: fix wrong magtype selection

This commit is contained in:
Loïc Grégoire
2026-05-14 09:08:02 -04:00
parent b87b3cfad2
commit 86caeafc77
+1 -1
View File
@@ -319,7 +319,7 @@ pub const Zone = struct {
self.magtype = null;
for (&magtypes) |*mtype| {
if (chunk_size > mtype.minbuf) {
if (chunk_size > mtype.minbuf and chunk_size <= mtype.maxbuf) {
self.magtype = mtype;
break;
}