Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__dax_zero_page_range

Proto:int __dax_zero_page_range(struct block_device *bdev, struct dax_device *dax_dev, sector_t sector, unsigned int offset, unsigned int size)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
struct dax_device *dax_dev
sector_tsector
unsigned intoffset
unsigned intsize
1064  If dax_range_is_aligned(bdev, offset, size) Then
1065  start_sector = sector + (offset >> 9)
1067  Return blkdev_issue_zeroout(bdev, start_sector, size >> 9, GFP_NOFS, 0)
1069  Else
1074  rc = bdev_dax_pgoff(bdev, sector, PAGE_SIZE, & pgoff)
1075  If rc Then Return rc
1078  id = dax_read_lock()
1079  rc = dax_direct_access(dax_dev, pgoff, 1, & kaddr, NULL)
1080  If rc < 0 Then
1082  Return rc
1084  memset(kaddr + offset, 0, size)
1085  dax_flush(dax_dev, kaddr + offset, size)
1086  dax_read_unlock(id)
1088  Return 0
Caller
NameDescribe
iomap_dax_zero