Skip to contentSkip to conversation

xfs: Fix the return value of xfs_rtcopy_summary()

PATCH Applied Nirjhar Roy (IBM) 2 participants 2 messages Jan 12 – Jan 13 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 xfs: Fix the return value of xfs_rtcopy_summary()

xfs_rtcopy_summary() should return the appropriate error code instead of always returning 0. The caller of this function which is xfs_growfs_rt_bmblock() is already handling the error.

Fixes e94b53ff699c ("xfs: cache last bitmap block in realtime allocator")
Cc <[email protected]> # v6.7
---
 fs/xfs/xfs_rtalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_rtalloc.c +1 -1
index 6907e871fa15..bc88b965e909 100644
@@ -126,7 +126,7 @@ xfs_rtcopy_summary(
 	error = 0;
 out:
 	xfs_rtbuf_cache_relse(oargs);
-	return 0;
+	return error;
 }
 /*
  * Mark an extent specified by start and len allocated.
Signature · 1 line
2.43.5
maintainer Applied
#1 lore raw
Quoted 5 lines · Nirjhar Roy (IBM)

xfs_rtcopy_summary() should return the appropriate error code instead of always returning 0. The caller of this function which is xfs_growfs_rt_bmblock() is already handling the error.

Applied to for-next, thanks!

[1/1] xfs: Fix the return value of xfs_rtcopy_summary()

      commit: 6b2d155366581705a848833a9b626bfea41d5a8d

Best regards,

Signature · 1 line
Carlos Maiolino <[email protected]>