From: Darrick J. Wong Date: Thu, 15 Aug 2024 18:58:26 +0000 (-0700) Subject: xfs: allow inodes to have the realtime and reflink flags X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b9b8198418cc25e3e70a8a428d1e11b34cde08a5;p=users%2Fhch%2Fxfsprogs.git xfs: allow inodes to have the realtime and reflink flags Now that we can share blocks between realtime files, allow this combination. Signed-off-by: Darrick J. Wong --- diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index 4075d3ef1..0b45442b1 100644 --- a/libxfs/xfs_inode_buf.c +++ b/libxfs/xfs_inode_buf.c @@ -739,7 +739,8 @@ xfs_dinode_verify( return __this_address; /* don't let reflink and realtime mix */ - if ((flags2 & XFS_DIFLAG2_REFLINK) && (flags & XFS_DIFLAG_REALTIME)) + if ((flags2 & XFS_DIFLAG2_REFLINK) && (flags & XFS_DIFLAG_REALTIME) && + !xfs_has_rtreflink(mp)) return __this_address; /* COW extent size hint validation */