Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ag_pages_for_writeback - tag pages to be written by write_cache_pages*@mapping: address space structure to write*@start: starting page index*@end: ending page index (inclusive)* This function scans the page range from @start to @end (inclusive) and tags

Proto:void tag_pages_for_writeback(struct address_space *mapping, unsigned long start, unsigned long end)

Type:void

Parameter:

TypeParameterName
struct address_space *mapping
unsigned longstart
unsigned longend
2108  XA_STATE() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.* Declare and initialise an xa_state on the stack.(xas, & i_pages, start)
2109  tagged = 0
2112  xas_lock_irq( & xas)
2114  xas_set_mark() - Sets the mark on this entry and its parents.*@xas: XArray operation state.*@mark: Mark number.* Sets the specified mark on this entry, and walks up the tree setting it* on all the ancestor entries
2115  If ++tagged % XA_CHECK_SCHED Then Continue
2118  xas_pause() - Pause a walk to drop a lock.*@xas: XArray operation state.* Some users need to pause a walk and drop the lock they're holding in* order to yield to a higher priority thread or carry out an operation* on an entry
2119  xas_unlock_irq( & xas)
2120  cond_resched()
2121  xas_lock_irq( & xas)
2123  xas_unlock_irq( & xas)
Caller
NameDescribe
write_cache_pageswrite_cache_pages - walk the list of dirty pages of the given address space and write all of them