| 函数逻辑报告 | 
| Source Code: fs\quota\quota_tree.c | Create Date:2022-07-29 11:09:46 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Remove reference to dquot from tree
函数原型:static int remove_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *blk, int depth)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct qtree_mem_dqinfo * | info | |
| struct dquot * | dquot | |
| uint * | blk | |
| int | depth | 
| 478 | ret等于0 | 
| 485 | 如果ret小于0则 | 
| 486 | quota_error( superblock this applies to , "Can't read quota data block %u", * blk) | 
| 488 | 转到:out_buf | 
| 491 | 如果depth恒等于Precomputed depth of quota tree 减1则 | 
| 493 | newblk等于0 | 
| 494 | 否则 | 
| 499 | ref[get_index(info, ID this applies to (uid, gid, projid) , depth)]等于cpu_to_le32(0) | 
| 501 | 以i小于Space usable in block for quota data 右移2位且非ref[i]循环如果i恒等于Space usable in block for quota data 右移2位且blk不等于Offset of tree in file in blocks 则 | 
| 507 | blk等于0 | 
| 508 | 否则 | 
| 510 | 如果ret小于0则quota_error( superblock this applies to , "Can't write quota tree block %u", * blk) | 
| 516 | out_buf : | 
| 517 | 释放内存 | 
| 518 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| remove_tree | Remove reference to dquot from tree | 
| qtree_delete_dquot | Delete dquot from tree | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |