函数逻辑报告 |
Source Code:fs\quota\quota_tree.c |
Create Date:2022-07-29 11:09:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Find space for dquot
函数原型:static uint find_free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, int *err)
返回类型:uint
参数:
类型 | 参数 | 名称 |
---|---|---|
struct qtree_mem_dqinfo * | info | |
struct dquot * | dquot | |
int * | err |
233 | err等于0 |
234 | 如果非buf则 |
239 | 如果First block with free entry 则 |
244 | 否则 |
246 | 如果blk小于0则 |
251 | memset(buf, 0, Space usable in block for quota data ) |
260 | 如果err小于0则 |
261 | quota_error( superblock this applies to , "Can't remove block (%u) from entry free list", blk) |
263 | 转到:out_buf |
266 | le16_add_cpu( & Number of valid entries in block , 1) |
268 | ddquot等于buf加sizeof(structqt_disk_dqdbheader) |
275 | 如果i恒等于Number of entries in one blocks 则 |
276 | quota_error( superblock this applies to , "Data block full but it shouldn't") |
278 | 转到:out_buf |
282 | 如果err小于0则 |
283 | quota_error( superblock this applies to , "Can't write quota data block %u", blk) |
285 | 转到:out_buf |
287 | Offset of dquot on disk [dq_lock, stable once set] 等于blk左移Block size of quota file 位的值加sizeof(structqt_disk_dqdbheader)加i乘Size of quota entry in quota file |
290 | 释放内存 |
291 | 返回:blk |
292 | out_buf : |
293 | 释放内存 |
294 | 返回:0 |
名称 | 描述 |
---|---|
do_insert_tree | Insert reference to structure into the trie |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |