From: Darrick J. Wong Date: Mon, 24 Feb 2025 18:21:54 +0000 (-0800) Subject: xfs: allow inodes to have the realtime and reflink flags X-Git-Tag: v6.14.0~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b61459df1f9a05275c6a5f76f6cd95091581496;p=thirdparty%2Fxfsprogs-dev.git xfs: allow inodes to have the realtime and reflink flags Source kernel commit: c3d3605f9661a2451c437a037d338dc79fb78f37 Now that we can share blocks between realtime files, allow this combination. Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig --- diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index 0be06258..a7774fc3 100644 --- a/libxfs/xfs_inode_buf.c +++ b/libxfs/xfs_inode_buf.c @@ -745,7 +745,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 */