函数逻辑报告 |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-29 11:08:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dquot_add_space
函数原型:static int dquot_add_space(struct dquot *dquot, qsize_t space, qsize_t rsv_space, unsigned int flags, struct dquot_warn *warn)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct dquot * | dquot | |
qsize_t | space | |
qsize_t | rsv_space | |
unsigned int | flags | |
struct dquot_warn * | warn |
1315 | sb等于 superblock this applies to |
1316 | ret等于0 |
1318 | 加自旋锁 |
1329 | 如果flags按位与DQUOT_SPACE_WARN则prepare_warning(warn, dquot, Block hardlimit reached ) |
1332 | 转到:finish |
1340 | 如果flags按位与DQUOT_SPACE_WARN则prepare_warning(warn, dquot, Block grace time expired ) |
1343 | 转到:finish |
1349 | 如果flags按位与DQUOT_SPACE_WARN则 |
1350 | prepare_warning(warn, dquot, Block softlimit reached ) |
1353 | 否则 |
1362 | finish : |
1368 | 如果flags按位与DQUOT_SPACE_NOFAIL则ret等于0 |
1370 | 如果非ret则 |
1372 | current used space 加等于space |
1374 | 自旋锁解锁 |
1375 | 返回:ret |
名称 | 描述 |
---|---|
__dquot_alloc_space | This operation can block, but only after everything is updated |
__dquot_transfer | Transfer the number of inode and blocks from one diskquota to an other |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |