xfs: always use xfs_dquot_type when extracting type from a dquot
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jul 2020 00:51:47 +0000 (17:51 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commit0b04dd5d7ca79ccb88e258641b328fe4f548272a
tree417f8c6697789200d8b766e21bd5a2c1f4090630
parente6eb603c7e4f39cbd41042c7ceb7141dffc08096
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>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_dquot.h