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:There is no bio. Make one now.

Proto:static inline int dio_new_bio(struct dio *dio, struct dio_submit *sdio, sector_t start_sector, struct buffer_head *map_bh)

Type:int

Parameter:

TypeParameterName
struct dio *dio
struct dio_submit *sdio
sector_tstart_sector
struct buffer_head *map_bh
711  ret = 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.
712  If ret Then Go to out
714  sector = start_sector << doesn't change - 9
715  nr_pages = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(approximate total IO pages , BIO_MAX_PAGES)
716  BUG_ON(nr_pages <= 0)
717  dio_bio_alloc(dio, sdio, b_bdev, sector, nr_pages)
718  prev block is at a boundary = 0
719  out :
720  Return ret
Caller
NameDescribe
dio_send_cur_pagePut cur_page under IO