Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Reenable quotas on remount RW

Proto:int dquot_resume(struct super_block *sb, int type)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
2432  dqopt = sb_dqopt(sb)
2433  ret = 0
2437  If WARN_ON_ONCE(rylock for reading -- returns 1 if successful, 0 if contention) Then lease a read lock
2440  When cnt < MAXQUOTAS cycle
2441  If type != -1 && cnt != type Then Continue
2443  If Not sb_has_quota_suspended(sb, cnt) Then Continue
2446  spin_lock( & dq_state_lock)
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  spin_unlock( & dq_state_lock)
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  If ret < 0 Then vfs_cleanup_quota_inode(sb, type)
2460  Return ret