Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:quota_getstate

Proto:static int quota_getstate(struct super_block *sb, int type, struct fs_quota_stat *fqs)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
struct fs_quota_stat *fqs
338  memset( & state, 0, sizeof(structqc_state))
339  ret = get_state(sb, & state)
340  If ret < 0 Then Return ret
343  memset(fqs, 0, size of fqs )
344  version number for future changes = s_quota_stat.qs_version
345  FS_QUOTA_{U,P,G}DQ_{ACCT,ENFD} = quota_state_to_flags( & state)
347  If Not FS_QUOTA_{U,P,G}DQ_{ACCT,ENFD} Then Return -ENOSYS
349  number of dquots incore = Number of dquots in core
351  limit for blks timer = Time after which space softlimit is* enforced
352  limit for inodes timer = Ditto for inode softlimit
353  limit for rt blks timer = Ditto for real-time space
354  limit for num warnings = Limit for number of space warnings
355  limit for num warnings = Ditto for inodes
358  If Inode number of quota file Then
359  qfs_ino = Inode number of quota file
360  umber of BBs 512-byte-blks = Number of 512-byte blocks in the file
361  umber of extents = Number of extents in the file
363  If Inode number of quota file Then
364  de number = Inode number of quota file
365  umber of BBs 512-byte-blks = Number of 512-byte blocks in the file
366  umber of extents = Number of extents in the file
368  If Inode number of quota file Then
382  Return 0
Caller
NameDescribe
quota_getxstate