]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: allow inodes to have the realtime and reflink flags
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:44:44 +0000 (12:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:45:00 +0000 (13:45 -0700)
Now that we can share blocks between realtime files, allow this
combination.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_inode_buf.c

index 90ae54832f7531aa6fce8305e28056a32a22e6e8..0cdd50b0199b226a58de5a7c5bcb3f83ee9b4424 100644 (file)
@@ -740,7 +740,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 */