Linux XFS filesystem development
 help / color / mirror / Atom feed
* cleanup error tags v3
@ 2025-09-18 14:34 Christoph Hellwig
  2025-09-18 14:34 ` [PATCH 1/5] xfs: remove xfs_errortag_get Christoph Hellwig
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Christoph Hellwig @ 2025-09-18 14:34 UTC (permalink / raw)
  To: Carlos Maiolino; +Cc: linux-xfs

Hi all,

while adding error injection to new code I'm writing I got really annoyed
with all the places error tags had to be added.  This series cleans the
error tags so that only the definition and one table have to be updated.
I've also cleaned up a lot of the surroundings while at it.

Changes since v2:
 - improve comments in xfs_errortag.h, mostly based on text supplied
   by Darrick
Changes since v1:
 - add a big fat comment and a idef/undef pair for the ERRTAGS magic

Diffstat:
 libxfs/xfs_ag_resv.c    |    7 -
 libxfs/xfs_alloc.c      |    5 -
 libxfs/xfs_attr_leaf.c  |    2 
 libxfs/xfs_bmap.c       |   17 +--
 libxfs/xfs_btree.c      |    2 
 libxfs/xfs_da_btree.c   |    2 
 libxfs/xfs_dir2.c       |    2 
 libxfs/xfs_errortag.h   |  114 ++++++++++++++-----------
 libxfs/xfs_exchmaps.c   |    4 
 libxfs/xfs_ialloc.c     |    2 
 libxfs/xfs_inode_buf.c  |    4 
 libxfs/xfs_inode_fork.c |    3 
 libxfs/xfs_metafile.c   |    2 
 libxfs/xfs_refcount.c   |    7 -
 libxfs/xfs_rmap.c       |    2 
 libxfs/xfs_rtbitmap.c   |    2 
 scrub/cow_repair.c      |    4 
 scrub/repair.c          |    2 
 xfs_attr_item.c         |    2 
 xfs_buf.c               |    4 
 xfs_error.c             |  216 ++++++------------------------------------------
 xfs_error.h             |   47 ++++------
 xfs_inode.c             |   28 ++----
 xfs_iomap.c             |    4 
 xfs_log.c               |    8 -
 xfs_trans_ail.c         |    2 
 26 files changed, 171 insertions(+), 323 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-19 16:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-18 14:34 cleanup error tags v3 Christoph Hellwig
2025-09-18 14:34 ` [PATCH 1/5] xfs: remove xfs_errortag_get Christoph Hellwig
2025-09-18 14:34 ` [PATCH 2/5] xfs: remove xfs_errortag_set Christoph Hellwig
2025-09-18 14:34 ` [PATCH 3/5] xfs: remove the expr argument to XFS_TEST_ERROR Christoph Hellwig
2025-09-18 14:34 ` [PATCH 4/5] xfs: remove pointless externs in xfs_error.h Christoph Hellwig
2025-09-18 14:34 ` [PATCH 5/5] xfs: centralize error tag definitions Christoph Hellwig
2025-09-19 16:15 ` cleanup error tags v3 Carlos Maiolino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox