* @brief Remove an address space from page cache * * This function removes the given address space from both the hash table and * active/inactive lists of the page cache. * * @param[in,out] aspace Pointer to the address space to be removed */
| 596 | * @param[in,out] aspace Pointer to the address space to be removed |
| 597 | */ |
| 598 | static void dfs_aspace_remove(struct dfs_aspace *aspace) |
| 599 | { |
| 600 | dfs_pcache_lock(); |
| 601 | if (aspace->hash_node.next != RT_NULL) |
| 602 | { |
| 603 | rt_list_remove(&aspace->hash_node); |
| 604 | } |
| 605 | if (aspace->cache_node.next != RT_NULL) |
| 606 | { |
| 607 | rt_list_remove(&aspace->cache_node); |
| 608 | } |
| 609 | dfs_pcache_unlock(); |
| 610 | } |
| 611 | |
| 612 | /** |
| 613 | * @brief Move an address space to active list |
no test coverage detected