Skip to content

Commit 7ee7c9b

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
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: 87fe4c3 ("xfs: create incore realtime group structures") Reported-by: Brian Foster <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent 9d89551 commit 7ee7c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_rtgroup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static inline int xfs_initialize_rtgroups(struct xfs_mount *mp,
272272
}
273273

274274
# define xfs_rtgroup_extents(mp, rgno) (0)
275-
# define xfs_update_last_rtgroup_size(mp, rgno) (-EOPNOTSUPP)
275+
# define xfs_update_last_rtgroup_size(mp, rgno) (0)
276276
# define xfs_rtgroup_lock(rtg, gf) ((void)0)
277277
# define xfs_rtgroup_unlock(rtg, gf) ((void)0)
278278
# define xfs_rtgroup_trans_join(tp, rtg, gf) ((void)0)

0 commit comments

Comments
 (0)