Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iomap_dio_actor

Proto:static loff_t iomap_dio_actor(struct inode *inode, loff_t pos, loff_t length, void *data, struct iomap *iomap, struct iomap *srcmap)

Type:loff_t

Parameter:

TypeParameterName
struct inode *inode
loff_tpos
loff_tlength
void *data
struct iomap *iomap
struct iomap *srcmap
370  dio = data
373  Case type of mapping == blocks allocated, need allocation
374  If WARN_ON_ONCE(flags & IOMAP_DIO_WRITE) Then Return -EIO
376  Return iomap_dio_hole_actor(length, dio)
377  Case type of mapping == locks allocated at @addr in unwritten state
378  If Not (flags & IOMAP_DIO_WRITE) Then Return iomap_dio_hole_actor(length, dio)
380  Return iomap_dio_bio_actor(inode, pos, length, dio, iomap)
381  Case type of mapping == locks allocated at @addr
382  Return iomap_dio_bio_actor(inode, pos, length, dio, iomap)
383  Case type of mapping == data inline in the inode
384  Return iomap_dio_inline_actor(inode, pos, length, dio, iomap)
385  Default
386  WARN_ON_ONCE(1)
387  Return -EIO