函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Find entry for given id in the tree

函数原型:static loff_t find_tree_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk, int depth)

返回类型:loff_t

参数:

类型参数名称
struct qtree_mem_dqinfo *info
struct dquot *dquot
uintblk
intdepth
574  buf等于getdqbuf(Space usable in block for quota data )
575  ret等于0
576  ref等于buf
578  如果非buf则返回:负ENOMEM
580  ret等于read_blk(info, blk, buf)
581  如果ret小于0则
582  quota_error( superblock this applies to , "Can't read quota tree block %u", blk)
584  转到:out_buf
586  ret等于0
587  blk等于le32_to_cpu(ref[get_index(info, ID this applies to (uid, gid, projid) , depth)])
588  如果非blk则转到:out_buf
590  如果depth小于Precomputed depth of quota tree 减1则ret等于Find entry for given id in the tree
592  否则ret等于Find entry in block
594  out_buf :
595  释放内存
596  返回:ret
调用者
名称描述
find_tree_dqentryFind entry for given id in the tree
find_dqentryFind entry for given id in the tree - wrapper function