]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: Fix the return value of xfs_rtcopy_summary()
authorNirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Mon, 12 Jan 2026 10:05:23 +0000 (15:35 +0530)
committerCarlos Maiolino <cem@kernel.org>
Tue, 13 Jan 2026 09:32:12 +0000 (10:32 +0100)
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) <nirjhar.roy.lists@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org # v6.7
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_rtalloc.c

index 167298ad88dde324939e41a5a4139c1e8c47cf6b..202dcd2f40395276f8e53f76aaae8bd284fa1a92 100644 (file)
@@ -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.