函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__invalidate_device

函数原型:int __invalidate_device(struct block_device *bdev, bool kill_dirty)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
boolkill_dirty
2219  sb等于获得驱动块
2220  res等于0
2222  如果sb
2229  缩小一个超级块的数据缓存
2230  res等于validate_inodes - attempt to free all inodes on a superblock*@sb: superblock to operate on*@kill_dirty: flag to guide handling of dirty inodes* Attempts to free all inodes for a given superblock. If there were any
2231  drop_super(sb)
2233  Invalidate clean unused buffers and pagecache.
2234  返回:res
调用者
名称描述
flush_disklush_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