函数逻辑报告 | 
Source Code:fs\quota\quota_tree.c | 
Create Date:2022-07-29 11:09:44 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Insert reference to structure into the trie
函数原型:static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *treeblk, int depth)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct qtree_mem_dqinfo * | info | |
| struct dquot * | dquot | |
| uint * | treeblk | |
| int | depth | 
| 308 | 如果非treeblk则 | 
| 313 | memset(buf, 0, Space usable in block for quota data ) | 
| 314 | newact等于1 | 
| 315 | 否则 | 
| 317 | 如果ret小于0则 | 
| 318 | quota_error( superblock this applies to , "Can't read tree quota block %u", * treeblk) | 
| 320 | 转到:out_buf | 
| 327 | 如果depth恒等于Precomputed depth of quota tree 减1则 | 
| 329 | 如果newblk则 | 
| 330 | quota_error( superblock this applies to , "Inserting already present quota entry (block %u)", le32_to_cpu(ref[get_index(info, ID this applies to (uid, gid, projid) , depth)])) | 
| 335 | 转到:out_buf | 
| 339 | 否则 | 
| 349 | out_buf : | 
| 350 | 释放内存 | 
| 351 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| do_insert_tree | Insert reference to structure into the trie | 
| dq_insert_tree | Wrapper for inserting quota structure into tree | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |