Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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")
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>

authored by

Nirjhar Roy (IBM) and committed by
Carlos Maiolino
6b2d1553 8dad31f8

+1 -1
+1 -1
fs/xfs/xfs_rtalloc.c
··· 126 126 error = 0; 127 127 out: 128 128 xfs_rtbuf_cache_relse(oargs); 129 - return 0; 129 + return error; 130 130 } 131 131 /* 132 132 * Mark an extent specified by start and len allocated.