函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_fiemap

函数原型:int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi, loff_t start, loff_t len, const struct iomap_ops *ops)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct fiemap_extent_info *fi
loff_tstart
loff_tlen
const struct iomap_ops *ops
73  memset( & ctx, 0, ctx的长度)
74  fi等于fi
75  type of mapping 等于 blocks allocated, need allocation
77  ret等于map_check_flags - check validity of requested flags for fiemap*@fieinfo: Fiemap context passed into ->fiemap*@fs_flags: Set of fiemap flags that the file system understands* Called from file system ->fiemap callback. This will compute the
78  如果ret则返回:ret
81  如果Flags as passed from user 按位与sync file data before map
82  ret等于filemap_write_and_wait(i_mapping)
83  如果ret则返回:ret
87 len大于0循环
88  ret等于Execute a iomap write on a segment of the mapping that spans a* contiguous range of pages that have identical block mapping state
91  如果ret恒等于负ENOENT退出
93  如果ret小于0则返回:ret
95  如果ret恒等于0则退出
98  start加等于ret
99  len减等于ret
102  如果 type of mapping 不等于 blocks allocated, need allocation
103  ret等于iomap_to_fiemap(fi, & prev, Last extent in file. )
104  如果ret小于0则返回:ret
108  返回:0