函数逻辑报告 |
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 |
函数名称:Free dquot entry in data block
函数原型:static int free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct qtree_mem_dqinfo * | info | |
struct dquot * | dquot | |
uint | blk |
418 | ret等于0 |
423 | quota_error( superblock this applies to , "Quota structure has offset to other block (%u) than it should (%u)", blk, (uint)( Offset of dquot on disk [dq_lock, stable once set] >> Block size of quota file )) |
426 | 转到:out_buf |
429 | 如果ret小于0则 |
430 | quota_error( superblock this applies to , "Can't read quota data block %u", blk) |
432 | 转到:out_buf |
435 | le16_add_cpu( & Number of valid entries in block , - 1) |
436 | 如果非le16_to_cpu(Number of valid entries in block )则 |
438 | 如果ret大于等于0则ret等于Insert empty block to the list |
440 | 如果ret小于0则 |
441 | quota_error( superblock this applies to , "Can't move quota data block (%u) to free list", blk) |
443 | 转到:out_buf |
445 | 否则 |
446 | memset(buf + ( Offset of dquot on disk [dq_lock, stable once set] & ((1 << Block size of quota file ) - 1)), 0, Size of quota entry in quota file ) |
453 | 如果ret小于0则 |
454 | quota_error( superblock this applies to , "Can't insert quota data block (%u) to free entry list", blk) |
456 | 转到:out_buf |
458 | 否则 |
460 | 如果ret小于0则 |
461 | quota_error( superblock this applies to , "Can't write quota data block %u", blk) |
463 | 转到:out_buf |
468 | out_buf : |
469 | 释放内存 |
470 | 返回:ret |
名称 | 描述 |
---|---|
remove_tree | Remove reference to dquot from tree |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |