]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: don't return an error from xfs_update_last_rtgroup_size for !XFS_RT
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Jan 2025 21:22:03 +0000 (13:22 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 16 Jan 2025 21:27:27 +0000 (13:27 -0800)
commit773c4c6f33cfd0a909fb742f149bd6f59cfa62b6
treea85af569ce5c1c31b5bfe2537730d1e21a3454b6
parent19bca351dcdfef4a63ede08bcc9f7bdeec10c453
xfs: don't return an error from xfs_update_last_rtgroup_size for !XFS_RT

Source kernel commit: 7ee7c9b39ed36caf983706f5b893cc5c37a79071

Non-rtg file systems have a fake RT group even if they do not have a RT
device, and thus an rgcount of 1.  Ensure xfs_update_last_rtgroup_size
doesn't fail when called for !XFS_RT to handle this case.

Fixes: 87fe4c34a383 ("xfs: create incore realtime group structures")
Reported-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_rtgroup.h