函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-27 16:09:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static vm_fault_t fault_dirty_shared_page(struct vm_fault *vmf)

返回类型:vm_fault_t

参数:

类型参数名称
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  如果非page_mkwritefile_update_time(File we map to (can be NULL). )
2400  如果dirtiedpage_mkwrite的值且mapping
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  如果fpin
2406  fput(fpin)
2407  返回:VM_FAULT_RETRY
2411  返回:0
调用者
名称描述
wp_page_shared
do_shared_fault