函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\direct-io.c Create Date:2022-07-29 10:46:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:In the AIO read case we speculatively dirty the pages before starting IO.* During IO completion, any of these pages which happen to have been written* back will be redirtied by bio_check_pages_dirty().

函数原型:static inline void dio_bio_submit(struct dio *dio, struct dio_submit *sdio)

返回类型:void

参数:

类型参数名称
struct dio *dio
struct dio_submit *sdio
444  bio等于 under assembly
447  bi_private等于dio
449  spin_lock_irqsave( & protects BIO fields below , flags)
450  direct_io_worker() and bios 自加
451  spin_unlock_irqrestore( & protects BIO fields below , flags)
453  如果s IO async ? op恒等于REQ_OP_READ pages should be dirtied bio_set_pages_dirty(bio)
456  bio_disk等于bi_disk
458  如果IO submition function
459  IO submition function (bio, inode, current first logical block in bio )
460  bio_cookie等于BLK_QC_T_NONE
461  否则bio_cookie等于submit_bio(bio)
464  under assembly = NULL
465  prev block is at a boundary 等于0
466  current first logical block in bio 等于0
调用者
名称描述
dio_send_cur_pagePut cur_page under IO
submit_page_sectionAn autonomous function to put a chunk of a page under deferred IO.* The caller doesn't actually know (or care) whether this piece of page is in* a BIO, or is under IO or whatever. We just take care of all possible * situations here
do_blockdev_direct_IOThis is a library function for use by filesystem drivers