Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-lib.c Create Date:2022-07-28 17:07:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Convert a number of 512B sectors to a number of pages.* The result is limited to a number of pages that can fit into a BIO.* Also make sure that the result is always at least 1 (page) for the cases

Proto:static unsigned int __blkdev_sectors_to_bio_pages(sector_t nr_sects)

Type:unsigned int

Parameter:

TypeParameterName
sector_tnr_sects
263  pages = DIV_ROUND_UP_SECTOR_T(nr_sects, PAGE_SIZE / 512)
265  Return min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(pages, (sector_t)BIO_MAX_PAGES)
Caller
NameDescribe
__blkdev_issue_zero_pages