Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-28 16:56:31
Last Modify:2020-03-17 23:13:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_trim - trim a bio*@bio: bio to trim*@offset: number of sectors to trim from the front of @bio*@size: size we want to trim @bio to, in sectors

Proto:void bio_trim(struct bio *bio, int offset, int size)

Type:void

Parameter:

TypeParameterName
struct bio *bio
intoffset
intsize
1928  size <<= 9
1929  If offset == 0 && size == residual I/O count Then Return
1932  _advance - increment/complete a bio by some number of bytes*@bio: bio to advance*@bytes: number of bytes to complete* This updates bi_sector, bi_size and bi_idx; if the number of bytes to* complete doesn't align with a bvec boundary, then bv_len and
1933  residual I/O count = size
1935  If bio_integrity(bio) Then bio_integrity_trim(bio)