We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aefbc3 commit ba970a2Copy full SHA for ba970a2
mm/pmm.c
@@ -95,6 +95,7 @@ static inline void init_frames_array(frames_array_t *array) {
95
for (unsigned i = 0; i < ARRAY_SIZE(array->frames); i++)
96
init_frame(&array->frames[i]);
97
list_add(&array->list, &frames);
98
+ total_free_frames += array->meta.free_count;
99
}
100
101
static frames_array_t *new_frames_array(void) {
@@ -117,7 +118,6 @@ static frames_array_t *new_frames_array(void) {
117
118
119
init_frames_array(array);
120
- total_free_frames += array->meta.free_count;
121
return array;
122
error:
123
panic("PMM: Unable to allocate new page for frame array");
0 commit comments