函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\mpage.c Create Date:2022-07-29 10:46:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mpage_readpages - 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

函数原型:int mpage_readpages(struct address_space *mapping, struct list_head *pages, unsigned nr_pages, get_block_t get_block)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
struct list_head *pages
unsignednr_pages
get_block_tget_block
388  struct mpage_readpage_args args = {get_block = get_block, is_readahead = true, }
394 page_idx小于nr_pages循环
395  page等于lru_to_page(pages)
397  3dnow prefetch to get an exclusive cache line.* Useful for spinlocks to avoid one state transition in the* cache coherency protocol:
398  删除链表项
402  page等于page
403  nr_pages等于nr_pagespage_idx
406  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
408  BUG_ON(!链表为空)
409  如果biompage_bio_submit(REQ_OP_READ, REQ_RAHEAD, bio)
411  返回:0