xfs: dquot recovery does not validate the recovered dquot
authorDarrick J. Wong <djwong@kernel.org>
Thu, 8 Feb 2024 23:20:52 +0000 (15:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:10:46 +0000 (19:10 +0100)
commit3581868f51a2edb027a898988b5b5a4ba379ee55
tree155074a5b7004cb367b817880feca8ca411f36d7
parentd744e578802a8d182b77d85148a284036340b6ad
xfs: dquot recovery does not validate the recovered dquot

commit 9c235dfc3d3f901fe22acb20f2ab37ff39f2ce02 upstream.

When we're recovering ondisk quota records from the log, we need to
validate the recovered buffer contents before writing them to disk.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Acked-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_dquot_item_recover.c