xfs: drop the type parameter from xfs_dquot_verify
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jul 2020 00:41:24 +0000 (17:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 29 Jul 2020 03:24:14 +0000 (20:24 -0700)
commitf9751c4ad3d17fa93773c187732f10c8a49940e3
tree9fdb8c79440eceef3c56b7d3f9d39ad2d65d8515
parent2cb91bab4fa4effe56da1c7fe2fc5723c4935db1
xfs: drop the type parameter from xfs_dquot_verify

xfs_qm_reset_dqcounts (aka quotacheck) is the only xfs_dqblk_verify
caller that actually knows the specific quota type that it's looking
for.  Since everything else just pass in type==0 (including the buffer
verifier), drop the parameter and open-code the check like
xfs_dquot_from_disk already does.

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/libxfs/xfs_dquot_buf.c
fs/xfs/libxfs/xfs_quota_defs.h
fs/xfs/xfs_buf_item_recover.c
fs/xfs/xfs_dquot_item_recover.c
fs/xfs/xfs_qm.c