函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\iomap\buffered-io.c Create Date:2022-07-29 11:07:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:iomap_finish_page_writeback

函数原型:static void iomap_finish_page_writeback(struct inode *inode, struct page *page, int error)

返回类型:void

参数:

类型参数名称
struct inode *inode
struct page *page
interror
1120  iop等于to_iomap_page(page)
1122  如果error
1123  SetPageError(page)
1124  mapping_set_error - record a writeback error in the address_space*@mapping - the mapping in which an error should be set*@error - the error to set in the mapping* When writeback fails in some way, we must record that error so that
1127  WARN_ON_ONCE(i_blocksize(inode) < PAGE_SIZE && !iop)
1128  WARN_ON_ONCE(iop && atomic_read( & write_count) <= 0)
1130  如果非iopatomic_dec_and_test( & write_count)则d_page_writeback - end writeback against a page*@page: the page
调用者
名称描述
iomap_finish_ioendWe're now finished for good with this ioend structure. Update the page* state, release holds on bios, and finally free up memory. Do not use the* ioend after this.