xfs: create xfs_dqtype_t to represent quota types

Create a new type (xfs_dqtype_t) to represent the type of an incore
dquot (user, group, project, or none).  Rename the incore dquot's
dq_flags field to q_type.

This allows us to replace all the "uint type" arguments to the quota
functions with "xfs_dqtype_t type", to make it obvious when we're
passing a quota type argument into a function.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
このコミットが含まれているのは:
Darrick J. Wong
2020-07-15 17:53:43 -07:00
コミット 1a7ed27165
15個のファイルの変更126行の追加101行の削除

ファイルの表示

@@ -39,9 +39,9 @@ struct xfs_buf;
static inline uint
xfs_quota_chkd_flag(
uint dqtype)
xfs_dqtype_t type)
{
switch (dqtype) {
switch (type) {
case XFS_DQTYPE_USER:
return XFS_UQUOTA_CHKD;
case XFS_DQTYPE_GROUP: