Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:filemap_page_mkwrite

Proto:vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)

Type:vm_fault_t

Parameter:

TypeParameterName
struct vm_fault *vmf
2673  page = ->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).
2674  inode = file_inode(File we map to (can be NULL). )
2675  ret = VM_FAULT_LOCKED
2677  sb_start_pagefault - get write access to a superblock from a page fault*@sb: the super we write to* When a process starts handling write page fault, it should embed the* operation into sb_start_pagefault() - sb_end_pagefault() pair to get
2678  file_update_time(File we map to (can be NULL). )
2679  lock_page may only be called if we have the page's inode pinned.
2680  If See page-flags.h for PAGE_MAPPING_FLAGS != i_mapping Then
2681  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.
2682  ret = VM_FAULT_NOPAGE
2683  Go to out
2690  set_page_dirty(page)
2691  wait_for_stable_page(page)
2692  out :
2693  sb_end_pagefault - drop write access to a superblock from a page fault*@sb: the super we wrote to* Decrement number of processes handling write page fault to the filesystem.* Wake up possible waiters wanting to freeze the filesystem.
2694  Return ret