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:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:iomap_can_add_to_ioend

Proto:static bool iomap_can_add_to_ioend(struct iomap_writepage_ctx *wpc, loff_t offset, sector_t sector)

Type:bool

Parameter:

TypeParameterName
struct iomap_writepage_ctx *wpc
loff_toffset
sector_tsector
1346  If ( flags for mapping & IOMAP_F_SHARED) != (IOMAP_F_* & IOMAP_F_SHARED) Then Return false
1349  If type of mapping != io_type Then Return false
1351  If offset != ffset in the file + size of the extent Then Return false
1353  If sector != bio_end_sector( being built ) Then Return false
1355  Return true
Caller
NameDescribe
iomap_add_to_ioendTest to see if we have an existing ioend structure that we could append to* first, otherwise finish off the current ioend and start another.