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:Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)

Proto:int dquot_disable(struct super_block *sb, int type, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
unsigned intflags
2187  dqopt = sb_dqopt(sb)
2190  If WARN_ON_ONCE(rylock for reading -- returns 1 if successful, 0 if contention) Then lease a read lock
2195  If flags & DQUOT_USAGE_ENABLED && Not (flags & DQUOT_LIMITS_ENABLED) || flags & DQUOT_SUSPENDED && flags & (DQUOT_LIMITS_ENABLED | DQUOT_USAGE_ENABLED) Then Return -EINVAL
2205  If Not sb_any_quota_loaded(sb) Then Return 0
2208  When cnt < MAXQUOTAS cycle
2209  If type != -1 && cnt != type Then Continue
2211  If Not Does kernel know about any quota information for given sb + type? Then Continue
2214  If flags & DQUOT_SUSPENDED Then
2219  Else
2235  If Does kernel know about any quota information for given sb + type? && Not (flags & DQUOT_SUSPENDED) Then Continue
2239  Gather all references from inodes and drop them
2240  Invalidate all dquots on the list
2245  If info_dirty( & Information for each quota type [cnt]) Then write_info(sb, cnt)
2247  If free_file_info Then free_file_info(sb, cnt)
2249  put_quota_format(dqi_format)
2250  DFQ_ flags [dq_data_lock] = 0
2251  Inode grace time [dq_data_lock] = 0
2252  Space grace time [dq_data_lock] = 0
2253  Operations for each type [cnt] = NULL
2257  If Flags for diskquotas on this device & DQUOT_QUOTA_SYS_FILE Then Go to put_inodes
2262  If sync_fs Then sync_fs(sb, 1)
2264  Write out and wait upon all the dirty data associated with a block* device via its mapping. Does not take the superblock lock.
2270  When cnt < MAXQUOTAS cycle If Not Does kernel know about any quota information for given sb + type? && inodes of quotafiles [cnt] Then
2272  inode_lock( inodes of quotafiles [cnt])
2273  runcate_inode_pages - truncate *all* the pages from an offset*@mapping: mapping to truncate*@lstart: offset from which to truncate* Called under (and serialised by) inode->i_mutex.* Note: When this function returns, there can be a page in the process of
2274  inode_unlock( inodes of quotafiles [cnt])
2276  If s_bdev Then Invalidate clean unused buffers and pagecache.
2278  put_inodes :
2280  If flags & DQUOT_SUSPENDED Then Return 0
2283  When cnt < MAXQUOTAS cycle If Not Does kernel know about any quota information for given sb + type? Then
2285  vfs_cleanup_quota_inode(sb, cnt)
2286  Return 0
Caller
NameDescribe
dquot_quota_off
dquot_load_quota_sb
dquot_quota_enable
dquot_quota_disable
dquot_suspendSuspend quotas on remount RO