]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: don't return an error from xfs_update_last_rtgroup_size for !XFS_RT
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Dec 2024 04:27:35 +0000 (05:27 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 8 Jan 2025 14:04:40 +0000 (15:04 +0100)
commit7ee7c9b39ed36caf983706f5b893cc5c37a79071
tree7a443dd883dc3dc58a7d6d542f7375cee09f139b
parent9d89551994a430b50c4fffcb1e617a057fa76e20
xfs: don't return an error from xfs_update_last_rtgroup_size for !XFS_RT

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>
fs/xfs/libxfs/xfs_rtgroup.h