| Function report | 
| Source Code: fs\quota\quota_tree.c | Create Date:2022-07-28 20:33:24 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Remove reference to dquot from tree
Proto:static int remove_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *blk, int depth)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct qtree_mem_dqinfo * | info | |
| struct dquot * | dquot | |
| uint * | blk | |
| int | depth | 
| 478 | ret = 0 | 
| 485 | If ret < 0 Then | 
| 486 | quota_error( superblock this applies to , "Can't read quota data block %u", * blk) | 
| 488 | Go to out_buf | 
| 491 | If depth == Precomputed depth of quota tree - 1 Then | 
| 493 | newblk = 0 | 
| 494 | Else | 
| 499 | ref[get_index(info, ID this applies to (uid, gid, projid) , depth)] = cpu_to_le32(0) | 
| 501 | When i < Space usable in block for quota data >> 2 && Not ref[i] cycle If i == Space usable in block for quota data >> 2 && blk != Offset of tree in file in blocks Then | 
| 507 | blk = 0 | 
| 508 | Else | 
| 510 | If ret < 0 Then quota_error( superblock this applies to , "Can't write quota tree block %u", * blk) | 
| 516 | out_buf : | 
| 518 | Return ret | 
| Name | Describe | 
|---|---|
| remove_tree | Remove reference to dquot from tree | 
| qtree_delete_dquot | Delete dquot from tree | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |