]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: set the unwritten bit in rmap lookup flags in xchk_bmap_get_rmapextents
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Nov 2020 00:32:43 +0000 (16:32 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:20 +0000 (19:22 +0100)
commita58e217ad6cdfd9d22fc052b5cd135202ac32140
tree1110ce60966d7d3078314285739e88d4702ea6a9
parentac560d221919afee17bd1d27eefcf508f24b92c0
xfs: set the unwritten bit in rmap lookup flags in xchk_bmap_get_rmapextents

[ Upstream commit 5dda3897fd90783358c4c6115ef86047d8c8f503 ]

When the bmbt scrubber is looking up rmap extents, we need to set the
extent flags from the bmbt record fully.  This will matter once we fix
the rmap btree comparison functions to check those flags correctly.

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