函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-core.c Create Date:2022-07-27 18:35:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Remap block n of partition p to block n+start(p) of the disk.

函数原型:static inline int blk_partition_remap(struct bio *bio)

返回类型:int

参数:

类型参数名称
struct bio *bio
843  ret等于负EIO
845  _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
846  p等于__disk_get_part(bi_disk, bi_partno)
847  如果此条件成立可能性小(为编译器优化)(!p)则转到:out
849  如果此条件成立可能性小(为编译器优化)(should_fail_request(p, residual I/O count ))则转到:out
851  如果此条件成立可能性小(为编译器优化)(bio_check_ro(bio, p))则转到:out
854  如果bio_sectors(bio)则
855  如果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.则转到:out
857  device address in 512 byte sectors 加等于start_sect
858  lock_bio_remap - map request for a logical device to the raw device*@q: queue holding the operation*@bio: revised operation*@dev: device for the operation*@from: original sector for the operation* An operation for a logical device has been mapped to the
861  bi_partno等于0
862  ret等于0
863  out :
864  _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()
865  返回:ret
调用者
名称描述
generic_make_request_checks