函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_can_add_to_ioend

函数原型:static bool iomap_can_add_to_ioend(struct iomap_writepage_ctx *wpc, loff_t offset, sector_t sector)

返回类型:bool

参数:

类型参数名称
struct iomap_writepage_ctx *wpc
loff_toffset
sector_tsector
1346  如果 flags for mapping 按位与IOMAP_F_SHARED的值不等于IOMAP_F_* 按位与IOMAP_F_SHARED的值则返回:false
1349  如果 type of mapping 不等于io_type则返回:false
1351  如果offset不等于ffset in the file size of the extent 则返回:false
1353  如果sector不等于bio_end_sector( being built )则返回:false
1355  返回:true
调用者
名称描述
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.