xfs: always use xfs_dquot_type when extracting type from a dquot
Always use the xfs_dquot_type helper to extract the quota type from an incore dquot. This moves responsibility for filtering internal state information and whatnot to anybody passing around a struct xfs_dquot. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -167,7 +167,7 @@ static inline bool
|
||||
xfs_dquot_is_enforced(
|
||||
const struct xfs_dquot *dqp)
|
||||
{
|
||||
switch (dqp->dq_flags & XFS_DQTYPE_REC_MASK) {
|
||||
switch (xfs_dquot_type(dqp)) {
|
||||
case XFS_DQTYPE_USER:
|
||||
return XFS_IS_UQUOTA_ENFORCED(dqp->q_mount);
|
||||
case XFS_DQTYPE_GROUP:
|
||||
|
Reference in New Issue
Block a user