函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Insert given block to the beginning of list with free entries

函数原型:static int insert_free_dqentry(struct qtree_mem_dqinfo *info, char *buf, uint blk)

返回类型:int

参数:

类型参数名称
struct qtree_mem_dqinfo *info
char *buf
uintblk
182  tmpbuf等于getdqbuf(Space usable in block for quota data )
183  dh等于buf
186  如果非tmpbuf则返回:负ENOMEM
188  Number of next block with free entry 等于cpu_to_le32(First block with free entry )
189  Number of previous block with free entry 等于cpu_to_le32(0)
190  err等于write_blk(info, blk, buf)
191  如果err小于0则转到:out_buf
193  如果First block with free entry
194  err等于read_blk(info, First block with free entry , tmpbuf)
195  如果err小于0则转到:out_buf
197  Number of previous block with free entry 等于cpu_to_le32(blk)
199  err等于write_blk(info, First block with free entry , tmpbuf)
200  如果err小于0则转到:out_buf
203  释放内存
204  First block with free entry 等于blk
205  mark_info_dirty(Sb quota is on , Quota type )
206  返回:0
207  out_buf :
208  释放内存
209  返回:err
调用者
名称描述
free_dqentryFree dquot entry in data block