]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
fixup
authorChristoph Hellwig <hch@lst.de>
Mon, 5 Aug 2024 18:07:10 +0000 (11:07 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2024 12:53:49 +0000 (05:53 -0700)
repair/rt.c

index 985d2e1d8ca84895040634e2eebef0ad9c795e4b..acab6b5b5430ece66b25207cbce6134c1435ccd8 100644 (file)
@@ -24,7 +24,10 @@ set_rtword(
        union xfs_rtword_raw    *word,
        xfs_rtword_t            value)
 {
-       word->old = value;
+       if (xfs_has_rtgroups(mp))
+               word->rtg = cpu_to_be32(value);
+       else
+               word->old = value;
 }
 
 static inline void