函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:08:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Reenable quotas on remount RW

函数原型:int dquot_resume(struct super_block *sb, int type)

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
2432  dqopt等于sb_dqopt(sb)
2433  ret等于0
2437  如果WARN_ON_ONCE(rylock for reading -- returns 1 if successful, 0 if contention)则lease a read lock
2440 cnt小于MAXQUOTAS循环
2441  如果type不等于负1且cnt不等于type则继续下一循环
2443  如果非sb_has_quota_suspended(sb, cnt)则继续下一循环
2446  加自旋锁
2447  flags等于 Flags for diskquotas on this device 按位与dquot_state_flag(DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED, cnt)
2450  Flags for diskquotas on this device 与等于dquot_state_flag(DQUOT_STATE_FLAGS, cnt)的反
2451  自旋锁解锁
2453  flags等于dquot_generic_flag(flags, cnt)
2454  ret等于dquot_load_quota_sb(sb, cnt, Id of the dqi_format - used when turning * quotas on after remount RW , flags)
2456  如果ret小于0则vfs_cleanup_quota_inode(sb, type)
2460  返回:ret