函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\readahead.c Create Date:2022-07-27 15:35:33
Last Modify:2020-03-17 21:13:07 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lease a list of pages, invalidating them first if need be

函数原型:static void read_cache_pages_invalidate_pages(struct address_space *mapping, struct list_head *pages)

返回类型:void

参数:

类型参数名称
struct address_space *mapping
struct list_head *pages
69  当非链表为空循环
70  victim等于lru_to_page(pages)
71  删除链表项
72  see if a page needs releasing upon read_cache_pages() failure* - the caller of read_cache_pages() may have set PG_private or PG_fscache* before calling, such as the NFS fs marking pages that are cached locally* on disk, thus we need to give the fs a
调用者
名称描述
read_cache_pagesad_cache_pages - populate an address space with some pages & start reads against them*@mapping: the address_space*@pages: The address of a list_head which contains the target pages. These* pages have their ->index populated and are otherwise uninitialised.