函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:long prune_icache_sb(struct super_block *sb, struct shrink_control *sc)

返回类型:long

参数:

类型参数名称
struct super_block *sb
struct shrink_control *sc
799  LIST_HEAD(freeable)
802  freed等于list_lru_shrink_walk( & s_inode_lru, sc, Isolate the inode from the LRU in preparation for freeing it, & freeable)
804  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.
805  返回:freed