Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iomap_seek_data_actor

Proto:static loff_t iomap_seek_data_actor(struct inode *inode, loff_t offset, loff_t length, void *data, struct iomap *iomap, struct iomap *srcmap)

Type:loff_t

Parameter:

TypeParameterName
struct inode *inode
loff_toffset
loff_tlength
void *data
struct iomap *iomap
struct iomap *srcmap
171  Case type of mapping == blocks allocated, need allocation
172  Return length
173  Case type of mapping == locks allocated at @addr in unwritten state
174  offset = Seek for SEEK_DATA / SEEK_HOLE in the page cache.* Within unwritten extents, the page cache determines which parts are holes* and which are data: uptodate buffer heads count as data; everything else* counts as a hole.
176  If offset < 0 Then Return length
179  Default
180  data = offset
181  Return 0