xfs: rt stubs should return negative errnos when rt disabled
authorDarrick J. Wong <djwong@kernel.org>
Mon, 16 Oct 2023 16:21:21 +0000 (09:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Oct 2023 23:22:40 +0000 (16:22 -0700)
commitc2988eb5cff75c02bc57e02c323154aa08f55b78
tree39ee56af2b688fdfcf1242e28103799c6da7b964
parentb73494fa9a304ab95b59f07845e8d7d36e4d23e0
xfs: rt stubs should return negative errnos when rt disabled

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>
fs/xfs/xfs_rtalloc.h