Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This allows us to do IO even on the odd last sectors* of a device, even if the block size is some multiple* of the physical sector size

Proto:void guard_bio_eod(struct bio *bio)

Type:void

Parameter:

TypeParameterName
struct bio *bio
3039  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
3040  part = __disk_get_part(bi_disk, bi_partno)
3041  If part Then maxsector = Any access of part->nr_sects which is not protected by partition* bd_mutex or gendisk bdev bd_mutex, should be done using this* accessor function
3043  Else maxsector = get_capacity(bi_disk)
3045  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
3047  If Not maxsector Then Return
3055  If Value for the false possibility is greater at compile time(bi_sector >= maxsector) Then Return
3058  maxsector -= device address in 512 byte sectors
3059  If Value is more likely to compile time(( residual I/O count >> 9) <= maxsector) Then Return
3062  bio_truncate(bio, maxsector << 9)
Caller
NameDescribe
submit_bh_wbc
mpage_bio_submit