Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bdev_write_inode

Proto:static void bdev_write_inode(struct block_device *bdev)

Type:void

Parameter:

TypeParameterName
struct block_device *bdev
59  inode = will die
62  spin_lock( & _blocks, i_bytes, maybe i_size )
63  When Misc & I_DIRTY cycle
64  spin_unlock( & _blocks, i_bytes, maybe i_size )
65  ret = write_inode_now - write an inode to disk*@inode: inode to write to disk*@sync: whether the write should be synchronous or not* This function commits an inode to disk immediately if it is dirty. This is* primarily needed by knfsd.
66  If ret Then
68  pr_warn_ratelimited("VFS: Dirty inode writeback failed for block device %s (err=%d).\n", bdevname(bdev, name), ret)
72  spin_lock( & _blocks, i_bytes, maybe i_size )
74  spin_unlock( & _blocks, i_bytes, maybe i_size )
Caller
NameDescribe
__blkdev_put