函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void flush_disk(struct block_device *bdev, bool kill_dirty)

返回类型:void

参数:

类型参数名称
struct block_device *bdev
boolkill_dirty
1401  如果__invalidate_device(bdev, kill_dirty)则
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
调用者
名称描述
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