函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:haw_bdev -- unlock filesystem*@bdev: blockdevice to unlock*@sb: associated superblock* Unlocks the filesystem and marks it writeable again after freeze_bdev().

函数原型:int thaw_bdev(struct block_device *bdev, struct super_block *sb)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
struct super_block *sb
582  error等于负EINVAL
584  mutex_lock( & Mutex for freeze )
585  如果非 The counter of freeze processes 则转到:out
588  error等于0
589  如果 The counter of freeze processes 先自减大于0则转到:out
592  如果非sb则转到:out
595  如果thaw_supererror等于thaw_super(sb)
597  否则error等于thaw_super(sb)
599  如果error The counter of freeze processes 自加
601  out :
602  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
603  返回:error
调用者
名称描述
emergency_thaw_bdev