Skip to content

Commit 6b2d155

Browse files
Nirjhar-Roy-0211cmaiolino
authored andcommitted
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: e94b53f ("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>
1 parent 8dad31f commit 6b2d155

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/xfs_rtalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ xfs_rtcopy_summary(
126126
error = 0;
127127
out:
128128
xfs_rtbuf_cache_relse(oargs);
129-
return 0;
129+
return error;
130130
}
131131
/*
132132
* Mark an extent specified by start and len allocated.

0 commit comments

Comments
 (0)