]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:25 +0000 (11:21 +0100)
commit 6b2d155366581705a848833a9b626bfea41d5a8d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_rtalloc.c

index e063f4f2f2e6175c7583e24d0f8a61efbfb32dcc..59fad43063a781119a701c8c5f766c753e54c89c 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.