Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iomap_fiemap

Proto:int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fi, loff_t start, loff_t len, const struct iomap_ops *ops)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct fiemap_extent_info *fi
loff_tstart
loff_tlen
const struct iomap_ops *ops
73  memset( & ctx, 0, size of 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  If ret Then Return ret
81  If Flags as passed from user & sync file data before map Then
82  ret = filemap_write_and_wait(i_mapping)
83  If ret Then Return ret
87  When len > 0 cycle
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  If ret == -ENOENT Then Break
93  If ret < 0 Then Return ret
95  If ret == 0 Then Break
98  start += ret
99  len -= ret
102  If type of mapping != blocks allocated, need allocation Then
103  ret = iomap_to_fiemap(fi, & prev, Last extent in file. )
104  If ret < 0 Then Return ret
108  Return 0