mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
xfs: update rmap to allow cow staging extents in the rt rmap
Don't error out on CoW staging extent records when realtime reflink is enabled. Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
4ee3113aaf
commit
0bada82331
|
|
@ -285,6 +285,13 @@ xfs_rtrmap_check_meta_irec(
|
|||
if (irec->rm_blockcount != mp->m_sb.sb_rextsize)
|
||||
return __this_address;
|
||||
return NULL;
|
||||
case XFS_RMAP_OWN_COW:
|
||||
if (!xfs_has_rtreflink(mp))
|
||||
return __this_address;
|
||||
if (!xfs_verify_rgbext(rtg, irec->rm_startblock,
|
||||
irec->rm_blockcount))
|
||||
return __this_address;
|
||||
return NULL;
|
||||
default:
|
||||
return __this_address;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user