]> git.itanic.dy.fi Git - linux-stable/commit
xfs: return -ENOSPC from xfs_rtallocate_*
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Dec 2023 04:57:22 +0000 (05:57 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 22 Dec 2023 05:48:11 +0000 (11:18 +0530)
commitce42b5d37527b282d38413c1b5f7283253f6562d
treecd6a45ac48d0537a9cf7237cc8e83ce3d25cf40b
parent152e21235727bbfe50ddc79a2d60f6bcf19d1640
xfs: return -ENOSPC from xfs_rtallocate_*

Just return -ENOSPC instead of returning 0 and setting the return rt
extent number to NULLRTEXTNO.  This is turn removes all users of
NULLRTEXTNO, so remove that as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_types.h
fs/xfs/xfs_rtalloc.c