xfs: Fix the return value of xfs_rtcopy_summary()
PATCH v2 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.
--- 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 4 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.
Please add
Cc: <[email protected]> # v6.7
so this can be autobackported
--D
Quoted 24 lines
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]>--- 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 9 lines · Darrick J. Wong
Quoted 4 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.Please add
Cc: <[email protected]> # v6.7so this can be autobackported
Okay, thank you. Resent it with the Cc tag.
--NR
Quoted 27 lines
--D
Quoted 24 lines
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]>--- 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
Signature · 3 lines
Nirjhar Roy Linux Kernel Developer IBM, Bangalore