函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vict_inodes - evict all evictable inodes for a superblock*@sb: superblock to operate on* Make sure that no inodes with zero refcount are retained

函数原型:void evict_inodes(struct super_block *sb)

返回类型:void

参数:

类型参数名称
struct super_block *sb
626  LIST_HEAD(dispose)
628  again :
629  加自旋锁
631  如果atomic_read( & i_count)则继续下一循环
634  加自旋锁
635  如果Misc 按位与I_NEW按位或I_FREEING按位或I_WILL_FREE的值则
636  自旋锁解锁
637  继续下一循环
640  Misc 或等于I_FREEING
641  inode_lru_list_del(inode)
642  自旋锁解锁
643  添加链表项
650  如果need_resched()则
651  自旋锁解锁
652  cond_resched()
653  dispose_list - dispose of the contents of a local list*@head: the head of the list to free* Dispose-list gets a local list with local inodes in it, so it doesn't* need to worry about list corruption and SMP locks.
654  转到:again
657  自旋锁解锁
659  dispose_list - dispose of the contents of a local list*@head: the head of the list to free* Dispose-list gets a local list with local inodes in it, so it doesn't* need to worry about list corruption and SMP locks.