Changes in kernel/generic/src/mm/backend_anon.c [83b6ba9f:5df1963] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_anon.c
r83b6ba9f r5df1963 76 76 .page_fault = anon_page_fault, 77 77 .frame_free = anon_frame_free, 78 79 .create_shared_data = NULL,80 .destroy_shared_data = NULL81 78 }; 82 79 … … 193 190 return AS_PF_FAULT; 194 191 195 mutex_lock(&area->sh_info->lock); 196 if (area->sh_info->shared) { 192 if (area->sh_info) { 197 193 btree_node_t *leaf; 198 194 … … 204 200 * mapping, a new frame is allocated and the mapping is created. 205 201 */ 202 mutex_lock(&area->sh_info->lock); 206 203 frame = (uintptr_t) btree_search(&area->sh_info->pagemap, 207 204 upage - area->base, &leaf); … … 235 232 } 236 233 frame_reference_add(ADDR2PFN(frame)); 234 mutex_unlock(&area->sh_info->lock); 237 235 } else { 238 236 … … 256 254 * Reserve the memory for this page now. 257 255 */ 258 if (!reserve_try_alloc(1)) { 259 mutex_unlock(&area->sh_info->lock); 256 if (!reserve_try_alloc(1)) 260 257 return AS_PF_SILENT; 261 }262 258 } 263 259 … … 266 262 km_temporary_page_put(kpage); 267 263 } 268 mutex_unlock(&area->sh_info->lock);269 264 270 265 /*
Note:
See TracChangeset
for help on using the changeset viewer.