函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\truncate.c Create Date:2022-07-27 15:38:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:void truncate_inode_pages_final(struct address_space *mapping)

返回类型:void

参数:

类型参数名称
struct address_space *mapping
501  mapping_set_exiting(mapping)
508  nrpages等于nrpages
509  smp_rmb()
510  nrexceptional等于nrexceptional
512  如果nrpagesnrexceptional
519  xa_lock_irq( & i_pages)
520  xa_unlock_irq( & i_pages)
527  runcate_inode_pages - truncate *all* the pages from an offset*@mapping: mapping to truncate*@lstart: offset from which to truncate* Called under (and serialised by) inode->i_mutex.* Note: When this function returns, there can be a page in the process of
调用者
名称描述
bdev_evict_inode
evictFree the inode passed in, removing it from the lists it is still connected* to