xfs: rt stubs should return negative errnos when rt disabled
authorDarrick J. Wong <djwong@kernel.org>
Thu, 8 Feb 2024 23:20:38 +0000 (15:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:10:44 +0000 (19:10 +0100)
commitfe327b8234d49265ecfeeb1bdd30cb4caa0d1d30
treedc9d020bacb284a3a4a1eb6aa71bae2ce3270523
parent6a6bb41b31df768ba75c6224ed9f30ad5b548a5d
xfs: rt stubs should return negative errnos when rt disabled

commit c2988eb5cff75c02bc57e02c323154aa08f55b78 upstream.

When realtime support is not compiled into the kernel, these functions
should return negative errnos, not positive errnos.  While we're at it,
fix a broken macro declaration.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Acked-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_rtalloc.h