xfs: refactor quota type testing
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jul 2020 00:50:57 +0000 (17:50 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commite6eb603c7e4f39cbd41042c7ceb7141dffc08096
tree5ffd8813539425f6db2b8bc83e8ba0350bbd3ef2
parent00a342e4965ee91fff06e01949fa27db53c0bb1c
xfs: refactor quota type testing

Certain functions can only act upon one quota type, so refactor those
functions to use switch statements, in keeping with all the other high
level xfs quota api calls.

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_trans_dquot.c