Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dio_set_defer_completion

Proto:static int dio_set_defer_completion(struct dio *dio)

Type:int

Parameter:

TypeParameterName
struct dio *dio
613  sb = i_sb
615  If defer AIO completion to workqueue? Then Return 0
617  defer AIO completion to workqueue? = true
618  If Not s_dio_done_wq Then Return Create workqueue for deferred direct IO completions. We allocate the* workqueue when it's first needed. This avoids creating workqueue for* filesystems that don't need it and also allows us to create the workqueue
620  Return 0
Caller
NameDescribe
get_more_blocksCall into the fs to map some more disk blocks. We record the current number* of available blocks at sdio->blocks_available. These are in units of the* fs blocksize, i_blocksize(inode).* The fs is allowed to map lots of blocks at once
do_blockdev_direct_IOThis is a library function for use by filesystem drivers