函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\quota_tree.c Create Date:2022-07-29 11:09:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Remove empty block from list and return it

函数原型:static int get_free_dqblk(struct qtree_mem_dqinfo *info)

返回类型:int

参数:

类型参数名称
struct qtree_mem_dqinfo *info
86  buf等于getdqbuf(Space usable in block for quota data )
87  dh等于buf
90  如果非buf则返回:负ENOMEM
92  如果First block in list of free blocks
93  blk等于First block in list of free blocks
94  ret等于read_blk(info, blk, buf)
95  如果ret小于0则转到:out_buf
97  First block in list of free blocks 等于le32_to_cpu(Number of next block with free entry )
99  否则
100  memset(buf, 0, Space usable in block for quota data )
102  ret等于write_blk(info, # of blocks in quota file , buf)
103  如果ret小于0则转到:out_buf
105  blk等于# of blocks in quota file 自加
107  mark_info_dirty(Sb quota is on , Quota type )
108  ret等于blk
109  out_buf :
110  释放内存
111  返回:ret
调用者
名称描述
find_free_dqentryFind space for dquot
do_insert_treeInsert reference to structure into the trie