Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lush_disk - invalidates all buffer-cache entries on a disk*@bdev: struct block device to be flushed*@kill_dirty: flag to guide handling of dirty inodes* Invalidates all buffer-cache entries on a disk

Proto:static void flush_disk(struct block_device *bdev, bool kill_dirty)

Type:void

Parameter:

TypeParameterName
struct block_device *bdev
boolkill_dirty
1401  If __invalidate_device(bdev, kill_dirty) Then
1402  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
1406  bd_invalidated = 1
Caller
NameDescribe
check_disk_size_changeheck_disk_size_change - checks for disk size change and adjusts bdev size
check_disk_changeThis routine checks whether a removable media has been changed,* and invalidates all buffer-cache-entries in that case. This* is a relatively slow routine, so we have to try to minimize using* it. Thus it is called only upon a 'mount' or 'open'. This