OSDN Git Service

xfs: fix duplicate verification from xfs_qm_dqflush()
authorBrian Foster <bfoster@redhat.com>
Wed, 6 May 2020 20:25:22 +0000 (13:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 May 2020 15:27:47 +0000 (08:27 -0700)
commit629dcb38dc351947ed6a26a997d4b587f3bd5c7e
tree56718e18823f02c4c0cf6ed385f394bf04bdf9da
parent61948b6fb276ad95ad63f82863e607719a31a628
xfs: fix duplicate verification from xfs_qm_dqflush()

The pre-flush dquot verification in xfs_qm_dqflush() duplicates the
read verifier by checking the dquot in the on-disk buffer. Instead,
verify the in-core variant before it is flushed to the buffer.

Fixes: 7224fa482a6d ("xfs: add full xfs_dqblk verifier")
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_dquot.c