Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-28 20:32:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dquot_quota_enable

Proto:static int dquot_quota_enable(struct super_block *sb, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
unsigned intflags
2509  dqopt = sb_dqopt(sb)
2511  If Not ( Flags for diskquotas on this device & DQUOT_QUOTA_SYS_FILE) Then Return -ENOSYS
2514  flags &= ~( user quota accounting | group quota accounting | project quota accounting )
2515  If Not flags Then Return -EINVAL
2517  When type < MAXQUOTAS cycle
2518  If Not (flags & qtype_enforce_flag(type)) Then Continue
2522  ret = -EINVAL
2523  Go to out_err
2526  ret = -EBUSY
2527  Go to out_err
2529  spin_lock( & dq_state_lock)
2530  Flags for diskquotas on this device |= dquot_state_flag(DQUOT_LIMITS_ENABLED, type)
2531  spin_unlock( & dq_state_lock)
2533  Return 0
2534  out_err :
2536  When type >= 0 cycle
2537  If flags & qtype_enforce_flag(type) Then Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
2541  If ret == -EBUSY Then ret = -EEXIST
2543  Return ret