]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: create xfs_dqtype_t to represent quota types
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 4 Sep 2020 20:07:20 +0000 (16:07 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 4 Sep 2020 20:07:20 +0000 (16:07 -0400)
commit4a4b0690dd5f7a6e6128f601ecfc43514a15b719
tree4e3fdc1e907a09446eb95535654325a749a5f076
parent8e4128a7f000347c7d33afbcd8520dbe126f2123
xfs: create xfs_dqtype_t to represent quota types

Source kernel commit: 1a7ed271653a4f418a6398465f861ee795d34468

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/check.c
libxfs/xfs_dquot_buf.c
libxfs/xfs_format.h
libxfs/xfs_quota_defs.h
repair/quotacheck.c
repair/quotacheck.h