* @brief Move an address space to inactive list * * This function moves the specified address space from its current position * to the inactive list in the page cache. The inactive list contains less * frequently accessed address spaces that are candidates for eviction. * * @param[in,out] aspace Pointer to the address space to be deactivated */
| 644 | * @param[in,out] aspace Pointer to the address space to be deactivated |
| 645 | */ |
| 646 | static void dfs_aspace_inactive(struct dfs_aspace *aspace) |
| 647 | { |
| 648 | dfs_pcache_lock(); |
| 649 | if (aspace->cache_node.next != RT_NULL) |
| 650 | { |
| 651 | rt_list_remove(&aspace->cache_node); |
| 652 | rt_list_insert_before(&__pcache.list_active, &aspace->cache_node); |
| 653 | } |
| 654 | dfs_pcache_unlock(); |
| 655 | } |
| 656 | |
| 657 | /** |
| 658 | * @brief Internal function to create a new address space for page cache |
no test coverage detected