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:Write out and wait upon all the dirty data associated with a block* device via its mapping. Does not take the superblock lock.

Proto:int sync_blockdev(struct block_device *bdev)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
500  Return __sync_blockdev(bdev, 1)
Caller
NameDescribe
set_blocksize
fsync_bdevWrite out and wait upon all dirty data associated with this* device. Filesystem data as well as the underlying block* device. Takes the superblock lock.
freeze_bdevze_bdev -- lock a filesystem and force it into a consistent state*@bdev: blockdevice to lock* If a superblock is found on this device, we take the s_umount semaphore* on it to make sure nobody unmounts until the snapshot creation is done
__blkdev_put
dquot_quota_syncWrite all dquot structures to disk and make them visible from userspace
dquot_disableTurn quota off on a device. type == -1 ==> quotaoff for all types (umount)