函数逻辑报告 |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-29 11:08:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
函数原型:int dquot_disable(struct super_block *sb, int type, unsigned int flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct super_block * | sb | |
| int | type | |
| unsigned int | flags |
| 2190 | 如果WARN_ON_ONCE(rylock for reading -- returns 1 if successful, 0 if contention)则lease a read lock |
| 2195 | 如果flags按位与DQUOT_USAGE_ENABLED且非flags按位与DQUOT_LIMITS_ENABLED的值或flags按位与DQUOT_SUSPENDED且flags按位与DQUOT_LIMITS_ENABLED按位或DQUOT_USAGE_ENABLED的值则返回:负EINVAL |
| 2205 | 如果非sb_any_quota_loaded(sb)则返回:0 |
| 2214 | 如果flags按位与DQUOT_SUSPENDED则 |
| 2219 | 否则 |
| 2220 | 加自旋锁 |
| 2221 | Flags for diskquotas on this device 与等于dquot_state_flag(flags, cnt)的反 |
| 2231 | 自旋锁解锁 |
| 2235 | 如果Does kernel know about any quota information for given sb + type? 且非flags按位与DQUOT_SUSPENDED的值则继续下一循环 |
| 2245 | 如果info_dirty( & Information for each quota type [cnt])则write_info(sb, cnt) |
| 2247 | 如果free_file_info则free_file_info(sb, cnt) |
| 2249 | put_quota_format(dqi_format) |
| 2250 | DFQ_ flags [dq_data_lock] 等于0 |
| 2251 | Inode grace time [dq_data_lock] 等于0 |
| 2252 | Space grace time [dq_data_lock] 等于0 |
| 2253 | Operations for each type [cnt] = NULL |
| 2270 | 以cnt小于MAXQUOTAS循环如果非Does kernel know about any quota information for given sb + type? 且 inodes of quotafiles [cnt]则 |
| 2272 | inode_lock( inodes of quotafiles [cnt]) |
| 2274 | inode_unlock( inodes of quotafiles [cnt]) |
| 2278 | put_inodes : |
| 2280 | 如果flags按位与DQUOT_SUSPENDED则返回:0 |
| 2285 | vfs_cleanup_quota_inode(sb, cnt) |
| 2286 | 返回:0 |
| 名称 | 描述 |
|---|---|
| dquot_quota_off | |
| dquot_load_quota_sb | |
| dquot_quota_enable | |
| dquot_quota_disable | |
| dquot_suspend | Suspend quotas on remount RO |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |