Function report |
Source Code:mm\zbud.c |
Create Date:2022-07-28 16:25:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:zbud_reclaim_page() - evicts allocations from a pool page and frees it*@pool: pool from which a page will attempt to be evicted*@retries: number of pages on the LRU list for which eviction will* be attempted before failing* zbud reclaim is different from
Proto:int zbud_reclaim_page(struct zbud_pool *pool, unsigned int retries)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct zbud_pool * | pool | |
unsigned int | retries |
506 | first_handle = 0 , last_handle = 0 |
509 | If Not ops || Not evict || list_empty - tests whether a list is empty*@head: the list to test. || retries == 0 Then |
511 | spin_unlock( & lock) |
512 | Return -EINVAL |
519 | under_reclaim = true |
524 | first_handle = 0 |
525 | last_handle = 0 |
526 | If first_chunks Then first_handle = Encodes the handle of a particular buddy within a zbud page* Pool lock should be held as this function accesses first|last_chunks |
528 | If last_chunks Then last_handle = Encodes the handle of a particular buddy within a zbud page* Pool lock should be held as this function accesses first|last_chunks |
530 | spin_unlock( & lock) |
533 | If first_handle Then |
538 | If last_handle Then |
543 | next : |
545 | under_reclaim = false |
546 | If first_chunks == 0 && last_chunks == 0 Then |
555 | Else if first_chunks == 0 || last_chunks == 0 Then |
560 | Else |
568 | spin_unlock( & lock) |
569 | Return -EAGAIN |
Name | Describe |
---|---|
zbud_zpool_shrink |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |