]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: drop the type parameter from xfs_dquot_verify
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 4 Sep 2020 20:05:20 +0000 (16:05 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 4 Sep 2020 20:05:20 +0000 (16:05 -0400)
commitbce109af5ea0b0d6547d8cd0500560f32532e6bd
tree7bc6284f330a6ab6b85094805397c12d0b7fbcce
parent12907581b658210742dcbb541bb011cbef7b5069
xfs: drop the type parameter from xfs_dquot_verify

Source kernel commit: f9751c4ad3d17fa93773c187732f10c8a49940e3

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