mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 15:48:21 +00:00
mm/zone: oops fix compile error
This commit is contained in:
+2
-2
@@ -1363,8 +1363,8 @@ fn gpa_resize(
|
|||||||
return new_pages <= old_pages;
|
return new_pages <= old_pages;
|
||||||
}
|
}
|
||||||
// Can't resize in place. Only allow shrinking within the same zone.
|
// Can't resize in place. Only allow shrinking within the same zone.
|
||||||
const old_zone = zone_for(buf.len, 1) orelse return false;
|
const old_zone = zone_for(buf.len) orelse return false;
|
||||||
const new_zone = zone_for(new_len, 1) orelse return false;
|
const new_zone = zone_for(new_len) orelse return false;
|
||||||
return old_zone == new_zone;
|
return old_zone == new_zone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user