Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check whether this bio extends beyond the end of the device or partition.* This may well happen - the kernel calls bread() without checking the size of* the device, e.g., when mounting a file system.

Proto:static inline int bio_check_eod(struct bio *bio, sector_t maxsector)

Type:int

Parameter:

TypeParameterName
struct bio *bio
sector_tmaxsector
826  nr_sectors = bio_sectors(bio)
828  If nr_sectors && maxsector && ( nr_sectors > maxsector || device address in 512 byte sectors > maxsector - nr_sectors ) Then
831  handle_bad_sector(bio, maxsector)
832  Return -EIO
834  Return 0
Caller
NameDescribe
blk_partition_remapRemap block n of partition p to block n+start(p) of the disk.
generic_make_request_checks