]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: centralize error tag definitions
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Sep 2025 14:34:37 +0000 (07:34 -0700)
committerCarlos Maiolino <cem@kernel.org>
Thu, 18 Sep 2025 15:32:02 +0000 (17:32 +0200)
commit71fa062196ae3abab790c91f1bdf09dcdc6fb1fe
tree1ce0c6fa44f6ea56949a077e1ae3f8adaf784870
parentb55dd72798115015908f4a17a1f8d70e8e974ab4
xfs: centralize error tag definitions

Right now 5 places in the kernel and one in xfsprogs need to be updated
for each new error tag.  Add a bit of macro magic so that only the
error tag definition and a single table, which reside next to each
other, need to be updated.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_errortag.h
fs/xfs/xfs_error.c