函数逻辑报告

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

函数名称:validate_inodes - attempt to free all inodes on a superblock*@sb: superblock to operate on*@kill_dirty: flag to guide handling of dirty inodes* Attempts to free all inodes for a given superblock. If there were any

函数原型:int invalidate_inodes(struct super_block *sb, bool kill_dirty)

返回类型:int

参数:

类型参数名称
struct super_block *sb
boolkill_dirty
675  busy等于0
677  LIST_HEAD(dispose)
679  again :
680  加自旋锁
682  加自旋锁
683  如果Misc 按位与I_NEW按位或I_FREEING按位或I_WILL_FREE的值则
684  自旋锁解锁
685  继续下一循环
687  如果Misc 按位与I_DIRTY_ALL且非kill_dirty
688  自旋锁解锁
689  busy等于1
690  继续下一循环
692  如果atomic_read( & i_count)则
693  自旋锁解锁
694  busy等于1
695  继续下一循环
698  Misc 或等于I_FREEING
699  inode_lru_list_del(inode)
700  自旋锁解锁
701  添加链表项
702  如果need_resched()则
703  自旋锁解锁
704  cond_resched()
705  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.
706  转到:again
709  自旋锁解锁
711  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.
713  返回:busy
调用者
名称描述
__invalidate_device