Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bdev_evict_inode

Proto:static void bdev_evict_inode(struct inode *inode)

Type:void

Parameter:

TypeParameterName
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  clear an inode
806  spin_lock( & pseudo-fs)
807  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
808  spin_unlock( & pseudo-fs)
810  inode_detach_wb(inode)
811  If bd_bdi != noop_backing_dev_info Then
812  bdi_put(bd_bdi)
813  bd_bdi = noop_backing_dev_info