Skip to content

Commit 5dda389

Browse files
committed
xfs: set the unwritten bit in rmap lookup flags in xchk_bmap_get_rmapextents
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: d852657 ("xfs: cross-reference reverse-mapping btree") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent ea84398 commit 5dda389

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/xfs/scrub/bmap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ xchk_bmap_get_rmap(
113113

114114
if (info->whichfork == XFS_ATTR_FORK)
115115
rflags |= XFS_RMAP_ATTR_FORK;
116+
if (irec->br_state == XFS_EXT_UNWRITTEN)
117+
rflags |= XFS_RMAP_UNWRITTEN;
116118

117119
/*
118120
* CoW staging extents are owned (on disk) by the refcountbt, so

0 commit comments

Comments
 (0)