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_inline_actor

Proto:static loff_t iomap_dio_inline_actor(struct inode *inode, loff_t pos, loff_t length, struct iomap_dio *dio, struct iomap *iomap)

Type:loff_t

Parameter:

TypeParameterName
struct inode *inode
loff_tpos
loff_tlength
struct iomap_dio *dio
struct iomap *iomap
343  iter = iter
346  BUG_ON(pos + length > PAGE_SIZE - offset_in_page(inline_data))
348  If flags & IOMAP_DIO_WRITE Then
349  size = i_size
351  If pos > size Then memset(inline_data + size, 0, pos - size)
353  copied = copy_from_iter(inline_data + pos, length, iter)
354  If copied Then
359  Else
360  copied = copy_to_iter(inline_data + pos, length, iter)
362  size += copied
363  Return copied
Caller
NameDescribe
iomap_dio_actor