| 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:Insert reference to structure into the trie
Proto:static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *treeblk, int depth)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct qtree_mem_dqinfo * | info | |
| struct dquot * | dquot | |
| uint * | treeblk | |
| int | depth | 
| 308 | If Not treeblk Then | 
| 313 | memset(buf, 0, Space usable in block for quota data ) | 
| 314 | newact = 1 | 
| 315 | Else | 
| 317 | If ret < 0 Then | 
| 318 | quota_error( superblock this applies to , "Can't read tree quota block %u", * treeblk) | 
| 320 | Go to out_buf | 
| 327 | If depth == Precomputed depth of quota tree - 1 Then | 
| 329 | If newblk Then | 
| 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 | Go to out_buf | 
| 338 | newblk = Find space for dquot | 
| 339 | Else | 
| 349 | out_buf : | 
| 351 | Return ret | 
| Name | Describe | 
|---|---|
| do_insert_tree | Insert reference to structure into the trie | 
| dq_insert_tree | Wrapper for inserting quota structure into 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 |