函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bdev_evict_inode

函数原型:static void bdev_evict_inode(struct inode *inode)

返回类型:void

参数:

类型参数名称
struct inode *inode
802  bdev等于bdev
803  runcate_inode_pages_final - truncate *all* pages before inode dies*@mapping: mapping to truncate* Called under (and serialized by) inode->i_mutex.* Filesystems have to use this in the .evict_inode path to inform the
804  Invalidate any and all dirty buffers on a given inode. We are* probably unmounting the fs, but that doesn't mean we have already* done a sync(). Just drop the buffers from the inode list.* NOTE: we take the inode's blockdev's mapping's private_lock. Which
805  清除索引节点
806  加自旋锁
807  删除链表项并重新初始化
808  自旋锁解锁
810  inode_detach_wb(inode)
811  如果bd_bdi不等于noop_backing_dev_info
812  bdi_put(bd_bdi)
813  bd_bdi等于noop_backing_dev_info