Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:08
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Mark the page dirty, and set it dirty in the page cache, and mark the inode* dirty.* If warn is true, then emit a warning if the page is not uptodate and has* not been truncated.* The caller must hold lock_page_memcg().

Proto:void __set_page_dirty(struct page *page, struct address_space *mapping, int warn)

Type:void

Parameter:

TypeParameterName
struct page *page
struct address_space *mapping
intwarn
620  xa_lock_irqsave( & i_pages, flags)
621  If See page-flags.h for PAGE_MAPPING_FLAGS Then
622  WARN_ON_ONCE(warn && !PageUptodate(page))
623  Helper function for set_page_dirty family.* Caller must hold lock_page_memcg().* NOTE: This relies on being atomic wrt interrupts.
624  __xa_set_mark() - Set this mark on this entry while locked.*@xa: XArray.*@index: Index of entry.*@mark: Mark number.* Attempting to set a mark on a %NULL entry does not succeed.* Context: Any context. Expects xa_lock to be held on entry.
627  xa_unlock_irqrestore( & i_pages, flags)
Caller
NameDescribe
__set_page_dirty_buffersAdd a page to the dirty page list.* It is a sad fact of life that this function is called from several places* deeply under spinlocking. It may not sleep.* If the page has buffers, the uptodate buffers are set dirty, to preserve
mark_buffer_dirtymark_buffer_dirty - mark a buffer_head as needing writeout*@bh: the buffer_head to mark dirty* mark_buffer_dirty() will set the dirty bit against the buffer, then set* its backing page dirty, then tag the page as dirty in the page cache* and then attach
iomap_set_page_dirty