| 317 | static struct list_node cbfs_preload_context_list; |
| 318 | |
| 319 | static struct cbfs_preload_context *alloc_cbfs_preload_context(size_t additional) |
| 320 | { |
| 321 | struct cbfs_preload_context *context; |
| 322 | size_t size = sizeof(*context) + additional; |
| 323 | |
| 324 | context = mem_pool_alloc(&cbfs_cache, size); |
| 325 | |
| 326 | if (!context) |
| 327 | return NULL; |
| 328 | |
| 329 | memset(context, 0, size); |
| 330 | |
| 331 | return context; |
| 332 | } |
| 333 | |
| 334 | static void append_cbfs_preload_context(struct cbfs_preload_context *context) |
| 335 | { |
no test coverage detected