Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:56
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:void evict_inodes(struct super_block *sb)

Type:void

Parameter:

TypeParameterName
struct super_block *sb
626  LIST_HEAD(dispose)
628  again :
629  spin_lock( & s_inode_list_lock)
631  If atomic_read( & i_count) Then Continue
634  spin_lock( & _blocks, i_bytes, maybe i_size )
635  If Misc & ( Serves as both a mutex and completion notification | Set when inode is about to be freed but still has dirty pages or buffers attached or the inode itself is still dirty | Must be set when calling write_inode_now() if i_count is zero) Then
636  spin_unlock( & _blocks, i_bytes, maybe i_size )
637  Continue
640  Misc |= Set when inode is about to be freed but still has dirty pages or buffers attached or the inode itself is still dirty
641  inode_lru_list_del(inode)
642  spin_unlock( & _blocks, i_bytes, maybe i_size )
643  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
650  If need_resched() Then
651  spin_unlock( & s_inode_list_lock)
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  Go to again
657  spin_unlock( & s_inode_list_lock)
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.