Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\iomap\buffered-io.c Create Date:2022-07-28 20:31:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:iomap_finish_page_writeback

Proto:static void iomap_finish_page_writeback(struct inode *inode, struct page *page, int error)

Type:void

Parameter:

TypeParameterName
struct inode *inode
struct page *page
interror
1120  iop = to_iomap_page(page)
1122  If error Then
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  If Not iop || atomic_dec_and_test( & write_count) Then d_page_writeback - end writeback against a page*@page: the page
Caller
NameDescribe
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.