Function report |
Source Code:mm\slab.c |
Create Date:2022-07-28 15:45:02 |
Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Try to find non-pfmemalloc slab if needed
Proto:static noinline struct page *get_valid_first_slab(struct kmem_cache_node *n, struct page *page, bool pfmemalloc)
Type:struct page
Parameter:
Type | Parameter | Name |
---|---|---|
struct kmem_cache_node * | n | |
struct page * | page | |
bool | pfmemalloc |
2842 | If Not page Then Return NULL |
2845 | If pfmemalloc Then Return page |
2848 | If Not If network-based swap is enabled, sl*b must keep track of whether pages* were allocated from pfmemalloc reserves. Then Return page |
2852 | If free_objects > free_limit Then |
2853 | ClearPageSlabPfmemalloc(page) |
2854 | Return page |
2859 | If Not SLAB Then |
2861 | free_slabs++ |
2866 | If Not If network-based swap is enabled, sl*b must keep track of whether pages* were allocated from pfmemalloc reserves. Then Return page |
2870 | free_touched = 1 |
2873 | free_slabs-- |
2874 | Return page |
2878 | Return NULL |
Name | Describe |
---|---|
get_first_slab |
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 |