With rtgroups, the rt bitmap and summary file words are defined to be
be32 values. Adjust repair to handle the endianness correctly.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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
{
union xfs_suminfo_raw *p = info + index;
- p->old++;
+ if (xfs_has_rtgroups(mp))
+ be32_add_cpu(&p->rtg, 1);
+ else
+ p->old++;
}
/*