函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_unshare_actor

函数原型:static loff_t iomap_unshare_actor(struct inode *inode, loff_t pos, loff_t length, void *data, struct iomap *iomap, struct iomap *srcmap)

返回类型:loff_t

参数:

类型参数名称
struct inode *inode
loff_tpos
loff_tlength
void *data
struct iomap *iomap
struct iomap *srcmap
902  status等于0
903  written等于0
906  如果非 flags for mapping 按位与IOMAP_F_SHARED的值则返回:length
909  如果 type of mapping 恒等于 blocks allocated, need allocation type of mapping 恒等于locks allocated at @addr in unwritten state 则返回:length
912  循环
913  offset等于offset_in_page(pos)
914  bytes等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(loff_t, PAGE_SIZE - offset, length)
917  status等于iomap_write_begin(inode, pos, bytes, IOMAP_WRITE_F_UNSHARE, & page, iomap, srcmap)
919  如果此条件成立可能性小(为编译器优化)(status)则返回:status
922  status等于iomap_write_end(inode, pos, bytes, bytes, page, iomap, srcmap)
925  如果WARN_ON_ONCE(status == 0)则返回:负EIO
927  返回:status
930  cond_resched()
932  pos加等于status
933  written加等于status
934  length减等于status
936  alance_dirty_pages_ratelimited - balance dirty memory state*@mapping: address_space which was dirtied* Processes which are dirtying memory should call in here once for each page* which was newly dirtied. The function will periodically check the system's
937 length循环
939  返回:written