Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-28 14:11:17
Last Modify:2022-05-23 13:25:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_page_dirty() is racy if the caller has no reference against* CPU could truncate the page off the mapping and then free the mapping.* Usually, the page _is_ locked, or the caller is a user-space process which

Proto:int set_page_dirty_lock(struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *page>mapping->host, and if the page is unlocked. This is because another
2596  lock_page may only be called if we have the page's inode pinned.
2597  ret = Dirty a page
2598  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.
2599  Return ret
Caller
NameDescribe
put_user_pages_dirty_lockput_user_pages_dirty_lock() - release and optionally dirty gup-pinned pages*@pages: array of pages to be maybe marked dirty, and definitely released
__access_remote_vmAccess another process' address space as given in mm. If non-NULL, use the* given task for page fault accounting.
process_vm_rw_pagesprocess_vm_rw_pages - read/write pages from task specified*@pages: array of pointers to pages we want to copy*@offset: offset in page to start copying from/to*@len: number of bytes to copy*@iter: where to copy to/from locally*@vm_write: 0 means copy from,
bio_set_pages_dirty_set_pages_dirty() will mark all the bio's pages as dirty.