Changes in kernel/generic/src/mm/as.c [5df1963:59fb782] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
r5df1963 r59fb782 488 488 489 489 /* Eventually check the addresses behind each area */ 490 list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t, node) { 490 list_foreach(as->as_area_btree.leaf_list, cur) { 491 btree_node_t *node = 492 list_get_instance(cur, btree_node_t, leaf_link); 491 493 492 494 for (btree_key_t i = 0; i < node->keys; i++) { … … 902 904 * reference from all frames found there. 903 905 */ 904 list_foreach(sh_info->pagemap.leaf_list, leaf_link, 905 btree_node_t, node) { 906 list_foreach(sh_info->pagemap.leaf_list, cur) { 907 btree_node_t *node 908 = list_get_instance(cur, btree_node_t, leaf_link); 906 909 btree_key_t i; 907 910 908 911 for (i = 0; i < node->keys; i++) 909 frame_free((uintptr_t) node->value[i] , 1);912 frame_free((uintptr_t) node->value[i]); 910 913 } 911 914 … … 953 956 * Visit only the pages mapped by used_space B+tree. 954 957 */ 955 list_foreach(area->used_space.leaf_list, leaf_link, btree_node_t,956 node) {958 list_foreach(area->used_space.leaf_list, cur) { 959 btree_node_t *node; 957 960 btree_key_t i; 958 961 962 node = list_get_instance(cur, btree_node_t, leaf_link); 959 963 for (i = 0; i < node->keys; i++) { 960 964 uintptr_t ptr = node->key[i]; … … 1234 1238 size_t used_pages = 0; 1235 1239 1236 list_foreach(area->used_space.leaf_list, leaf_link, btree_node_t, 1237 node) { 1240 list_foreach(area->used_space.leaf_list, cur) { 1241 btree_node_t *node 1242 = list_get_instance(cur, btree_node_t, leaf_link); 1238 1243 btree_key_t i; 1239 1244 … … 1259 1264 size_t frame_idx = 0; 1260 1265 1261 list_foreach(area->used_space.leaf_list, leaf_link, btree_node_t, 1262 node) { 1266 list_foreach(area->used_space.leaf_list, cur) { 1267 btree_node_t *node = list_get_instance(cur, btree_node_t, 1268 leaf_link); 1263 1269 btree_key_t i; 1264 1270 … … 1310 1316 frame_idx = 0; 1311 1317 1312 list_foreach(area->used_space.leaf_list, leaf_link, btree_node_t, 1313 node) { 1318 list_foreach(area->used_space.leaf_list, cur) { 1319 btree_node_t *node 1320 = list_get_instance(cur, btree_node_t, leaf_link); 1314 1321 btree_key_t i; 1315 1322 … … 2175 2182 size_t area_cnt = 0; 2176 2183 2177 list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t, 2178 node) { 2184 list_foreach(as->as_area_btree.leaf_list, cur) { 2185 btree_node_t *node = 2186 list_get_instance(cur, btree_node_t, leaf_link); 2179 2187 area_cnt += node->keys; 2180 2188 } … … 2187 2195 size_t area_idx = 0; 2188 2196 2189 list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t, 2190 node) { 2197 list_foreach(as->as_area_btree.leaf_list, cur) { 2198 btree_node_t *node = 2199 list_get_instance(cur, btree_node_t, leaf_link); 2191 2200 btree_key_t i; 2192 2201 … … 2222 2231 2223 2232 /* Print out info about address space areas */ 2224 list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t, 2225 node) { 2233 list_foreach(as->as_area_btree.leaf_list, cur) { 2234 btree_node_t *node 2235 = list_get_instance(cur, btree_node_t, leaf_link); 2226 2236 btree_key_t i; 2227 2237
Note:
See TracChangeset
for help on using the changeset viewer.