Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int thaw_bdev(struct block_device *bdev, struct super_block *sb)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
struct super_block *sb
582  error = -EINVAL
584  mutex_lock( & Mutex for freeze )
585  If Not The counter of freeze processes Then Go to out
588  error = 0
589  If -- The counter of freeze processes > 0 Then Go to out
592  If Not sb Then Go to out
595  If thaw_super Then error = thaw_super(sb)
597  Else error = thaw_super(sb)
599  If error Then 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  Return error
Caller
NameDescribe
emergency_thaw_bdev