函数逻辑报告 |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-29 11:09:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Generic routine for setting common part of quota structure
函数原型:static int do_set_dqblk(struct dquot *dquot, struct qc_dqblk *di)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct dquot * | dquot | |
struct qc_dqblk * | di |
2653 | dm等于 Diskquota usage [dq_dqb_lock] |
2654 | check_blim等于0, check_ilim等于0 |
2655 | dqi等于 Information for each quota type [ USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid) ] |
2657 | 如果mask of fields to change in ->set_dqblk() 按位与VFS_QC_MASK的反则返回:负EINVAL |
2670 | 加自旋锁 |
2673 | check_blim等于1 |
2674 | 设置内存位 |
2677 | 如果mask of fields to change in ->set_dqblk() 按位与QC_SPC_SOFT则preferred limit on disk blks 等于preferred limit on used space |
2679 | 如果mask of fields to change in ->set_dqblk() 按位与QC_SPC_HARD则absolute limit on disk blks alloc 等于absolute limit on used space |
2681 | 如果mask of fields to change in ->set_dqblk() 按位与QC_SPC_SOFT按位或QC_SPC_HARD的值则 |
2682 | check_blim等于1 |
2683 | 设置内存位 |
2692 | 如果mask of fields to change in ->set_dqblk() 按位与Field specifiers for ->set_dqblk() in struct qc_dqblk and also for* ->set_info() in struct qc_info则preferred inode limit 等于preferred inode limit |
2694 | 如果mask of fields to change in ->set_dqblk() 按位与QC_INO_HARD则absolute limit on allocated inodes 等于maximum # allocated inodes |
2697 | check_ilim等于1 |
2698 | 设置内存位 |
2713 | 如果check_blim则 |
2716 | ime limit for excessive disk use 等于0 |
2722 | 如果check_ilim则 |
2723 | 如果非preferred inode limit 或current # allocated inodes 小于等于preferred inode limit 则 |
2725 | ime limit for excessive inode use 等于0 |
2734 | 否则设置内存位 |
2736 | 自旋锁解锁 |
2737 | mark_dquot_dirty(dquot) |
2739 | 返回:0 |
名称 | 描述 |
---|---|
dquot_set_dqblk |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |