函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void dispose_list(struct list_head *head)

返回类型:void

参数:

类型参数名称
struct list_head *head
603  当非链表为空循环
606  inode等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(head, structinode, i_lru)
607  删除链表项并重新初始化
609  Free the inode passed in, removing it from the lists it is still connected* to
610  cond_resched()
调用者
名称描述
evict_inodesvict_inodes - evict all evictable inodes for a superblock*@sb: superblock to operate on* Make sure that no inodes with zero refcount are retained
invalidate_inodesvalidate_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
prune_icache_sbWalk the superblock inode LRU for freeable inodes and attempt to free them.* This is called from the superblock shrinker function with a number of inodes* to trim from the LRU. Inodes to be freed are moved to a temporary list and