mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
xfs: set the unwritten bit in rmap lookup flags in xchk_bmap_get_rmapextents
[ Upstream commit5dda3897fd] 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:d852657ccf("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
83e65294af
commit
5fda0976e8
@@ -120,6 +120,8 @@ xchk_bmap_get_rmap(
|
||||
|
||||
if (info->whichfork == XFS_ATTR_FORK)
|
||||
rflags |= XFS_RMAP_ATTR_FORK;
|
||||
if (irec->br_state == XFS_EXT_UNWRITTEN)
|
||||
rflags |= XFS_RMAP_UNWRITTEN;
|
||||
|
||||
/*
|
||||
* CoW staging extents are owned (on disk) by the refcountbt, so
|
||||
|
||||
Reference in New Issue
Block a user