Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mpage_alloc

Proto:static struct bio *mpage_alloc(struct block_device *bdev, sector_t first_sector, int nr_vecs, gfp_t gfp_flags)

Type:struct bio

Parameter:

TypeParameterName
struct block_device *bdev
sector_tfirst_sector
intnr_vecs
gfp_tgfp_flags
78  gfp_flags &= GFP_KERNEL
79  bio = bio_alloc(gfp_flags, nr_vecs)
81  If bio == NULL && flags & Allocating memory Then
82  When Not bio && (nr_vecs /= 2) cycle
83  bio = bio_alloc(gfp_flags, nr_vecs)
86  If bio Then
87  bio_set_dev(bio, bdev)
88  device address in 512 byte sectors = first_sector
90  Return bio
Caller
NameDescribe
do_mpage_readpageThis is the worker routine which does all the work of mapping the disk* blocks and constructs largest possible bios, submits them for IO if the* blocks are not contiguous on the disk
__mpage_writepage