xfs: Fix the return value of xfs_rtcopy_summary()
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")
Signed-off-by Nirjhar Roy (IBM) <[email protected]>
Reviewed-by "Darrick J. Wong" <[email protected]>
Reviewed-by Christoph Hellwig <[email protected]>
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
@@ -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
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 isxfs_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]>