Commit 6b2d1553 authored by Nirjhar Roy (IBM)'s avatar Nirjhar Roy (IBM) Committed by Carlos Maiolino
Browse files

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: e94b53ff ("xfs: cache last bitmap block in realtime allocator")
Signed-off-by: default avatarNirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org # v6.7
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent 8dad31f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.