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:Attempt to put the current chunk of 'cur_page' into the current BIO. If* that was successful then update final_block_in_bio and take a ref against* the just-added page.* Return zero on success. Non-zero means the caller needs to start a new BIO.

Proto:static inline int dio_bio_add_page(struct dio_submit *sdio)

Type:int

Parameter:

TypeParameterName
struct dio_submit *sdio
734  ret = bio_add_page( under assembly , The page , Nr of bytes at cur_page_offset , Offset into it, in bytes )
736  If ret == Nr of bytes at cur_page_offset Then
740  If Nr of bytes at cur_page_offset + Offset into it, in bytes == PAGE_SIZE Then approximate total IO pages --
742  get_page(The page )
743  current final block in bio + 1 = Where it starts + (Nr of bytes at cur_page_offset >> doesn't change )
745  ret = 0
746  Else
747  ret = 1
749  Return ret
Caller
NameDescribe
dio_send_cur_pagePut cur_page under IO