mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 07:48: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;
|
self.magtype = null;
|
||||||
for (&magtypes) |*mtype| {
|
for (&magtypes) |*mtype| {
|
||||||
if (chunk_size > mtype.minbuf) {
|
if (chunk_size > mtype.minbuf and chunk_size <= mtype.maxbuf) {
|
||||||
self.magtype = mtype;
|
self.magtype = mtype;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user