Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\internal.h Create Date:2022-07-28 06:11:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:maybe_unlock_mmap_for_io

Proto:static inline struct file *maybe_unlock_mmap_for_io(struct vm_fault *vmf, struct file *fpin)

Type:struct file

Parameter:

TypeParameterName
struct vm_fault *vmf
struct file *fpin
372  flags = FAULT_FLAG_xxx flags
374  If fpin Then Return fpin
382  If (flags & (Retry fault if blocking | Don't drop mmap_sem and wait when retrying )) == Retry fault if blocking Then
384  fpin = get_file(File we map to (can be NULL). )
385  lease a read lock
387  Return fpin
Caller
NameDescribe
lock_page_maybe_drop_mmaplock_page_maybe_drop_mmap - lock the page, possibly dropping the mmap_sem*@vmf - the vm_fault for this fault.*@page - the page to lock.*@fpin - the pointer to the file we may pin (or is already pinned).
do_sync_mmap_readaheadSynchronous readahead happens when we don't even find a page in the page* cache at all. We don't want to perform IO under the mmap sem, so if we have* to drop the mmap sem we return the file that was pinned in order for us to do* that
do_async_mmap_readaheadAsynchronous 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.
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
fault_dirty_shared_pageHandle dirtying of a page in shared file mapping on a write fault.* The function expects the page to be locked and unlocks it.