函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:24
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void guard_bio_eod(struct bio *bio)

返回类型:void

参数:

类型参数名称
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  如果partmaxsector等于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  否则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  如果非maxsector则返回
3055  如果此条件成立可能性小(为编译器优化)(bi_sector >= maxsector)则返回
3058  maxsector减等于 device address in 512 byte sectors
3059  如果此条件成立可能性大(为编译器优化)(( residual I/O count >> 9) <= maxsector)则返回
3062  bio_truncate(bio, maxsector << 9)
调用者
名称描述
submit_bh_wbc
mpage_bio_submit