]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28371b78c163c135c9428bf262b094dc29d74b4b
tree56718e18823f02c4c0cf6ed385f394bf04bdf9da
parente3f1c11a15de729a4552975ecca25e2a303c798f
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: 78a7d4d18e51 ("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