Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Call when you free inode

Proto:void bd_forget(struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct inode *inode
1010  struct block_device * bdev = NULL
1012  spin_lock( & pseudo-fs)
1013  If Not sb_is_blkdev_sb(i_sb) Then bdev = i_bdev
1015  i_bdev = NULL
1016  i_mapping = i_data
1017  spin_unlock( & pseudo-fs)
1019  If bdev Then bdput(bdev)
Caller
NameDescribe
bd_acquire