函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:07
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Called when we're dropping the last reference* to an inode

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

返回类型:void

参数:

类型参数名称
struct inode *inode
1539  sb等于i_sb
1540  op等于s_op
1543  WARN_ON(Misc & I_NEW)
1545  如果drop_inodedrop等于drop_inode(inode)
1547  否则drop等于generic_drop_inode(inode)
1550  如果非drops_flags按位与SB_ACTIVE
1551  Add inode to LRU if needed (inode is unused and clean).* Needs inode->i_lock held.
1552  自旋锁解锁
1553  返回
1556  如果非drop
1557  Misc 或等于I_WILL_FREE
1558  自旋锁解锁
1559  write_inode_now(inode, 1)
1560  加自旋锁
1561  WARN_ON(Misc & I_NEW)
1562  Misc 与等于I_WILL_FREE的反
1565  Misc 或等于I_FREEING
1566  如果非链表为空inode_lru_list_del(inode)
1568  自旋锁解锁
1570  Free the inode passed in, removing it from the lists it is still connected* to
调用者
名称描述
iput放置一个索引节点