Skip to contentSkip to conversation

xfs: Fix the return value of xfs_rtcopy_summary()

PATCH Superseded Nirjhar Roy (IBM) 3 participants 7 messages Dec 17, 2025 – Jan 12 XFS filesystem

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 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
Reviewed-by on v3 1/1
#1 lore raw
Quoted 8 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.

Fixes e94b53ff699c ("xfs: cache last bitmap block in realtime allocator")
Cc <[email protected]> # v6.7

Looks good:

#2 lore raw
Quoted 5 lines · Christoph Hellwig
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 is xfs_growfs_rt_bmblock() is already handling the error.

Quoted 7 lines
Quoted 4 lines
Fixes e94b53ff699c ("xfs: cache last bitmap block in realtime allocator")
Cc <[email protected]> # v6.7

Looks good:

Hi Carlos,

Are this and [1] getting picked up?

[1] https://lore.kernel.org/all/[email protected]/

--NR

Quoted 1 line
Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
maintainer
#3 lore raw
Quoted 13 lines · Nirjhar Roy (IBM)
Quoted 11 lines · Christoph Hellwig
Quoted 8 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.

Fixes e94b53ff699c ("xfs: cache last bitmap block in realtime allocator")
Cc <[email protected]> # v6.7

Looks good:

Quoted 7 lines
Quoted 1 line

Hi Carlos,

Are this and [1] getting picked up?

[1] https://lore.kernel.org/all/[email protected]/

Hello.

I can't find a new version on my mbox. Christoph asked you to fix the commit log on the patch you mentioned.

If you sent a new version and I missed it, please let me know.

Carlos

Quoted 10 lines

--NR

Quoted 1 line
Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
#4 lore raw
Quoted 18 lines · Carlos Maiolino
Quoted 17 lines · Nirjhar Roy (IBM)
Quoted 5 lines · Christoph Hellwig
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 is xfs_growfs_rt_bmblock() is already handling the error.

Quoted 7 lines
Quoted 4 lines
Fixes e94b53ff699c ("xfs: cache last bitmap block in realtime allocator")
Cc <[email protected]> # v6.7

Looks good:

Hi Carlos,

Are this and [1] getting picked up?

Quoted 7 lines
Quoted 1 line

[1] https://lore.kernel.org/all/[email protected]/

Hello.

I can't find a new version on my mbox. Christoph asked you to fix the commit log on the patch you mentioned.

If you sent a new version and I missed it, please let me know.

Sorry, I have re-sent it now [1]. Anything about [2]?

[1] https://lore.kernel.org/all/9b2e055a1e714dacf37b4479e2aab589f3cec7f6.1768205975.git.nirjhar.roy.lists@gmail.com/

[2] https://lore.kernel.org/all/[email protected]/

--NR

Quoted 11 lines

Carlos

Quoted 8 lines

--NR

Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
maintainer
#5 lore raw
Quoted 21 lines · Nirjhar Roy (IBM)
Quoted 19 lines · Carlos Maiolino
Quoted 18 lines · Nirjhar Roy (IBM)
Quoted 5 lines · Christoph Hellwig
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 is xfs_growfs_rt_bmblock() is already handling the error.

Quoted 7 lines
Quoted 4 lines
Fixes e94b53ff699c ("xfs: cache last bitmap block in realtime allocator")
Cc <[email protected]> # v6.7

Looks good:

Hi Carlos,

Are this and [1] getting picked up?

[1] https://lore.kernel.org/all/[email protected]/

Quoted 8 lines
Quoted 6 lines

Hello.

I can't find a new version on my mbox. Christoph asked you to fix the commit log on the patch you mentioned.

If you sent a new version and I missed it, please let me know.

Sorry, I have re-sent it now [1]. Anything about [2]?

I think think it slipped through the cracks, could you please re-send it? I'll pick both this week.

Carlos

Quoted 23 lines

[1] https://lore.kernel.org/all/9b2e055a1e714dacf37b4479e2aab589f3cec7f6.1768205975.git.nirjhar.roy.lists@gmail.com/

[2] https://lore.kernel.org/all/[email protected]/

--NR

Quoted 10 lines

Carlos

Quoted 8 lines

--NR

Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
#6 lore raw
Quoted 23 lines · Carlos Maiolino
Quoted 22 lines · Nirjhar Roy (IBM)
Quoted 21 lines · Carlos Maiolino
Quoted 10 lines · Nirjhar Roy (IBM)
Quoted 9 lines · Christoph Hellwig
Quoted 8 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.

Fixes e94b53ff699c ("xfs: cache last bitmap block in realtime allocator")
Cc <[email protected]> # v6.7
Quoted 8 lines
Quoted 3 lines

Looks good:

Hi Carlos,

Are this and [1] getting picked up?

[1] https://lore.kernel.org/all/[email protected]/

Hello.

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines

I can't find a new version on my mbox. Christoph asked you to fix the commit log on the patch you mentioned.

If you sent a new version and I missed it, please let me know.

Sorry, I have re-sent it now [1]. Anything about [2]?

I think think it slipped through the cracks, could you please re-send it? I'll pick both this week.

Sure, no problem. I have re-sent both [1] and [2].

[1] https://lore.kernel.org/all/587bff140dc86fec629cd41db0af8c00fb9623d0.1768212233.git.nirjhar.roy.lists@gmail.com/

[2] https://lore.kernel.org/all/9b2e055a1e714dacf37b4479e2aab589f3cec7f6.1768205975.git.nirjhar.roy.lists@gmail.com/

--NR

Quoted 24 lines

Carlos

Quoted 21 lines

[1] https://lore.kernel.org/all/9b2e055a1e714dacf37b4479e2aab589f3cec7f6.1768205975.git.nirjhar.roy.lists@gmail.com/

[2] https://lore.kernel.org/all/[email protected]/

--NR

Quoted 9 lines

Carlos

Quoted 8 lines

--NR

Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
Signature · 3 lines
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore