Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__invalidate_device

Proto:int __invalidate_device(struct block_device *bdev, bool kill_dirty)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
boolkill_dirty
2219  sb = get the superblock of a device
2220  res = 0
2222  If sb Then
2229  shrink dcache for a superblock
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  Return res
Caller
NameDescribe
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