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_hole_actor

Proto:static loff_t iomap_seek_hole_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
125  Case type of mapping == locks allocated at @addr in unwritten state
126  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.
128  If offset < 0 Then Return length
131  Case type of mapping == blocks allocated, need allocation
132  data = offset
133  Return 0
134  Default
135  Return length