Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:A really large O_DIRECT read or write can generate a lot of BIOs. So* to keep the memory consumption sane we periodically reap any completed BIOs* during the BIO generation phase.* This also helps to limit the peak amount of pinned userspace memory.

Proto:static inline int dio_bio_reap(struct dio *dio, struct dio_submit *sdio)

Type:int

Parameter:

TypeParameterName
struct dio *dio
struct dio_submit *sdio
566  ret = 0
568  If ate limit reaping ++ >= 64 Then
579  If ret == 0 Then ret = ret2
582  ate limit reaping = 0
584  Return ret
Caller
NameDescribe
dio_new_bioThere is no bio. Make one now.