]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: strengthen rmap record flags checking
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Nov 2020 00:32:41 +0000 (16:32 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:27:23 +0000 (13:27 +0100)
commitd88cc6f344a2b4a8095a0c8f392b4fa632707276
tree2ebce2f54a11eaf85e19b7112fae22391ef6c8c6
parent804b269c252445d3b98497c8b02db0152c65cd63
xfs: strengthen rmap record flags checking

[ Upstream commit 498fe261f0d6d5189f8e11d283705dd97b474b54 ]

We always know the correct state of the rmap record flags (attr, bmbt,
unwritten) so check them by direct comparison.

Fixes: d852657ccfc0 ("xfs: cross-reference reverse-mapping btree")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/scrub/bmap.c