Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\filemap.c Create Date:2022-07-28 14:02:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Asynchronous readahead happens when we find the page and PG_readahead,* so we want to possibly extend the readahead further. We return the file that* was pinned if we have to drop the mmap_sem in order to do IO.

Proto:static struct file *do_async_mmap_readahead(struct vm_fault *vmf, struct page *page)

Type:struct file

Parameter:

TypeParameterName
struct vm_fault *vmf
struct page *page
2434  file = File we map to (can be NULL).
2435  ra = f_ra
2436  mapping = f_mapping
2437  struct file * fpin = NULL
2438  offset = Logical page offset based on vma
2441  If Flags, see mm.h. & App will not benefit from clustered reads Then Return fpin
2443  If Cache miss stat for mmap accesses > 0 Then Cache miss stat for mmap accesses --
2445  If PageReadahead(page) Then
2446  fpin = maybe_unlock_mmap_for_io(vmf, fpin)
2447  page_cache_async_readahead(mapping, ra, file, page, offset, Maximum readahead window )
2450  Return fpin
Caller
NameDescribe
filemap_faultlemap_fault - read in file data for page fault handling*@vmf: struct vm_fault containing details of the fault* filemap_fault() is invoked via the vma operations vector for a* mapped memory region to read in file data during a page fault