Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\mpage.c Create Date:2022-07-28 20:15:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int mpage_readpages(struct address_space *mapping, struct list_head *pages, unsigned nr_pages, get_block_t get_block)

Type:int

Parameter:

TypeParameterName
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  When page_idx < nr_pages cycle
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  deletes entry from list
402  page = page
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(!list_empty - tests whether a list is empty*@head: the list to test.)
409  If bio Then mpage_bio_submit(REQ_OP_READ, REQ_RAHEAD, bio)
411  Return 0