函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:34:28
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void tag_pages_for_writeback(struct address_space *mapping, unsigned long start, unsigned long end)

返回类型:void

参数:

类型参数名称
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  如果tagged先自加取模XA_CHECK_SCHED则继续下一循环
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)
调用者
名称描述
write_cache_pageswrite_cache_pages - walk the list of dirty pages of the given address space and write all of them
dax_writeback_mapping_rangeFlush the mapping to the persistent domain within the byte range of [start,* end]. This is required by data integrity operations to ensure file data is* on persistent storage prior to completion of the operation.