Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iomap_zero_range_actor

Proto:static loff_t iomap_zero_range_actor(struct inode *inode, loff_t pos, loff_t count, void *data, struct iomap *iomap, struct iomap *srcmap)

Type:loff_t

Parameter:

TypeParameterName
struct inode *inode
loff_tpos
loff_tcount
void *data
struct iomap *iomap
struct iomap *srcmap
988  did_zero = data
989  written = 0
993  If type of mapping == blocks allocated, need allocation || type of mapping == locks allocated at @addr in unwritten state Then Return count
996  Do
999  offset = offset_in_page(pos)
1000  bytes = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(loff_t, PAGE_SIZE - offset, count)
1002  If IS_DAX(inode) Then status = iomap_dax_zero(pos, offset, bytes, iomap)
1004  Else status = iomap_zero(inode, pos, offset, bytes, iomap, srcmap)
1007  If status < 0 Then Return status
1010  pos += bytes
1011  count -= bytes
1012  written += bytes
1013  If did_zero Then * did_zero = true
1015  When count > 0 cycle
1017  Return written