Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Generic routine for setting common part of quota file information

Proto:int dquot_set_dqinfo(struct super_block *sb, int type, struct qc_info *ii)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
struct qc_info *ii
2799  err = 0
2801  If mask of fields to change in ->set_info() & QC_WARNS_MASK || mask of fields to change in ->set_info() & QC_RT_SPC_TIMER Then Return -EINVAL
2804  If Not sb_has_quota_active(sb, type) Then Return -ESRCH
2806  mi = Information for each quota type + type
2807  If mask of fields to change in ->set_info() & QC_FLAGS Then
2808  If Flags QCI_* & Root squash turned on && Quota format id != Quota format type IDs Then Return -EINVAL
2812  spin_lock( & dq_data_lock)
2813  If mask of fields to change in ->set_info() & QC_SPC_TIMER Then Space grace time [dq_data_lock] = Time after which space softlimit is* enforced
2815  If mask of fields to change in ->set_info() & QC_INO_TIMER Then Inode grace time [dq_data_lock] = Ditto for inode softlimit
2817  If mask of fields to change in ->set_info() & QC_FLAGS Then
2818  If Flags QCI_* & Root squash turned on Then DFQ_ flags [dq_data_lock] |= Root squash enabled (for v1 quota format)
2820  Else DFQ_ flags [dq_data_lock] &= ~Root squash enabled (for v1 quota format)
2823  spin_unlock( & dq_data_lock)
2824  mark_info_dirty(sb, type)
2826  write_info(sb, type)
2827  Return err