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 errno sign for the xfs_errortag_{add,clearall} stubs

All errno values should be negative in the kernel.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>

authored by

Christoph Hellwig and committed by
Carlos Maiolino
9a228d14 44b9553c

+2 -2
+2 -2
fs/xfs/xfs_error.h
··· 60 60 #define xfs_errortag_del(mp) 61 61 #define XFS_TEST_ERROR(mp, tag) (false) 62 62 #define XFS_ERRORTAG_DELAY(mp, tag) ((void)0) 63 - #define xfs_errortag_add(mp, tag) (ENOSYS) 64 - #define xfs_errortag_clearall(mp) (ENOSYS) 63 + #define xfs_errortag_add(mp, tag) (-ENOSYS) 64 + #define xfs_errortag_clearall(mp) (-ENOSYS) 65 65 #endif /* DEBUG */ 66 66 67 67 /*