函数逻辑报告 |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-29 11:08:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This operation can block, but only after everything is updated
函数原型:int __dquot_alloc_space(struct inode *inode, qsize_t number, int flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | inode | |
qsize_t | number | |
int | flags |
1651 | ret等于0 |
1653 | reserve等于flags按位与DQUOT_SPACE_RESERVE |
1656 | 如果非dquot_active(inode)则 |
1657 | 如果reserve则 |
1658 | 加自旋锁 |
1659 | de_reserved_space is managed internally by quota, and protected by* i_lock similar to i_blocks+i_bytes.加等于number |
1660 | 自旋锁解锁 |
1661 | 否则 |
1662 | inode_add_bytes(inode, number) |
1664 | 转到:out |
1672 | 加自旋锁 |
1700 | 如果reserve则de_reserved_space is managed internally by quota, and protected by* i_lock similar to i_blocks+i_bytes.加等于number |
1704 | 自旋锁解锁 |
1706 | 如果reserve则转到:out_flush_warn |
1709 | out_flush_warn : |
1710 | 注销过期读锁 |
1712 | out : |
1713 | 返回:ret |
名称 | 描述 |
---|---|
dquot_alloc_space_nodirty | |
dquot_alloc_space_nofail | |
dquot_prealloc_block_nodirty | |
dquot_reserve_block |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |