函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dquot_quota_enable

函数原型:static int dquot_quota_enable(struct super_block *sb, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct super_block *sb
unsigned intflags
2509  dqopt等于sb_dqopt(sb)
2511  如果非 Flags for diskquotas on this device 按位与DQUOT_QUOTA_SYS_FILE的值则返回:负ENOSYS
2514  flags与等于user quota accounting 按位或group quota accounting 按位或project quota accounting 的值的反
2515  如果非flags则返回:负EINVAL
2517 type小于MAXQUOTAS循环
2518  如果非flags按位与qtype_enforce_flag(type)的值则继续下一循环
2522  ret等于负EINVAL
2523  转到:out_err
2525  如果sb_has_quota_limits_enabled(sb, type)则
2526  ret等于负EBUSY
2527  转到:out_err
2529  加自旋锁
2530  Flags for diskquotas on this device 或等于dquot_state_flag(DQUOT_LIMITS_ENABLED, type)
2531  自旋锁解锁
2533  返回:0
2534  out_err :
2536 type大于等于0循环
2537  如果flags按位与qtype_enforce_flag(type)则Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
2541  如果ret恒等于负EBUSYret等于负EEXIST
2543  返回:ret