Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Handle dirtying of a page in shared file mapping on a write fault.* The function expects the page to be locked and unlocks it.

Proto:static vm_fault_t fault_dirty_shared_page(struct vm_fault *vmf)

Type:vm_fault_t

Parameter:

TypeParameterName
struct vm_fault *vmf
2371  vma = Target VMA
2373  page = ->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).
2375  page_mkwrite = Function pointers to deal with this struct. && page_mkwrite
2377  dirtied = Dirty a page
2378  VM_BUG_ON_PAGE(PageAnon(page), page)
2385  mapping = Neutral page->mapping pointer to address_space or anon_vma or other
2386  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
2388  If Not page_mkwrite Then file_update_time(File we map to (can be NULL). )
2400  If (dirtied || page_mkwrite) && mapping Then
2403  fpin = maybe_unlock_mmap_for_io(vmf, NULL)
2404  alance_dirty_pages_ratelimited - balance dirty memory state*@mapping: address_space which was dirtied* Processes which are dirtying memory should call in here once for each page* which was newly dirtied. The function will periodically check the system's
2405  If fpin Then
2406  fput(fpin)
2407  Return VM_FAULT_RETRY
2411  Return 0
Caller
NameDescribe
wp_page_shared
do_shared_fault