mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +00:00
mm/zone: fix wrong magtype selection
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user