All of lore.kernel.org
 help / color / mirror / Atom feed
* cleanup log item formatting
@ 2025-06-10  5:14 Christoph Hellwig
  2025-06-10  5:14 ` [PATCH 01/17] xfs: don't pass the old lv to xfs_cil_prepare_item Christoph Hellwig
                   ` (19 more replies)
  0 siblings, 20 replies; 31+ messages in thread
From: Christoph Hellwig @ 2025-06-10  5:14 UTC (permalink / raw)
  To: Carlos Maiolino; +Cc: linux-xfs

Hi all,

I dug into a rabit hole about the log item formatting recently,
and noticed that the handling of the opheaders is still pretty
ugly because it leaks pre-delayed logging implementation
details into the log item implementations.

The core of this series is to remove the to reserve space in the
CIL buffers/shadow buffers for the opheaders that already were
generated more or less on the fly by the lowlevel log write
code anyway, but there's lots of other cleanups around it.

Diffstat:
 libxfs/xfs_log_format.h  |   54 -----
 libxfs/xfs_log_recover.h |    6 
 xfs_attr_item.c          |  156 +++++++-------
 xfs_attr_item.h          |    8 
 xfs_bmap_item.c          |   28 +-
 xfs_buf_item.c           |   27 +-
 xfs_buf_item.h           |    2 
 xfs_buf_item_recover.c   |   38 +--
 xfs_dquot_item.c         |    9 
 xfs_dquot_item_recover.c |   20 -
 xfs_exchmaps_item.c      |   19 -
 xfs_extfree_item.c       |   69 +++---
 xfs_icreate_item.c       |    8 
 xfs_inode_item.c         |   55 ++---
 xfs_inode_item.h         |    4 
 xfs_inode_item_recover.c |   26 +-
 xfs_log.c                |  503 ++++++++++++++++++-----------------------------
 xfs_log.h                |  106 ++++-----
 xfs_log_cil.c            |  195 ++++++++++--------
 xfs_log_priv.h           |   29 ++
 xfs_log_recover.c        |   16 -
 xfs_refcount_item.c      |   44 +---
 xfs_rmap_item.c          |   44 +---
 xfs_trans.h              |    5 
 24 files changed, 668 insertions(+), 803 deletions(-)

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

end of thread, other threads:[~2025-06-24 14:38 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10  5:14 cleanup log item formatting Christoph Hellwig
2025-06-10  5:14 ` [PATCH 01/17] xfs: don't pass the old lv to xfs_cil_prepare_item Christoph Hellwig
2025-06-10  7:20   ` Carlos Maiolino
2025-06-10  5:14 ` [PATCH 02/17] xfs: cleanup the ordered item logic in xlog_cil_insert_format_items Christoph Hellwig
2025-06-10  7:56   ` Carlos Maiolino
2025-06-10 13:32     ` Christoph Hellwig
2025-06-10 14:00       ` Carlos Maiolino
2025-06-10  5:15 ` [PATCH 03/17] xfs: use better names for size members in xfs_log_vec Christoph Hellwig
2025-06-10  9:07   ` Carlos Maiolino
2025-06-10  5:15 ` [PATCH 04/17] xfs: don't use a xfs_log_iovec for attr_item names and values Christoph Hellwig
2025-06-10  9:17   ` Carlos Maiolino
2025-06-10 13:33     ` Christoph Hellwig
2025-06-10  5:15 ` [PATCH 05/17] xfs: don't use a xfs_log_iovec for ri_buf in log recovery Christoph Hellwig
2025-06-11 10:33   ` Carlos Maiolino
2025-06-10  5:15 ` [PATCH 06/17] xfs: improve the ->iop_format interface Christoph Hellwig
2025-06-10  5:15 ` [PATCH 07/17] xfs: add a xlog_write_one_vec helper Christoph Hellwig
2025-06-10  5:15 ` [PATCH 08/17] xfs: set lv_bytes in xlog_write_one_vec Christoph Hellwig
2025-06-10  5:15 ` [PATCH 09/17] xfs: create ophdrs on the fly in xlog_write Christoph Hellwig
2025-06-10  5:15 ` [PATCH 10/17] xfs: special case continuation records in xlog_write_region a litte less Christoph Hellwig
2025-06-10  5:15 ` [PATCH 11/17] xfs: factor the split iclog handling out of xlog_write_partial Christoph Hellwig
2025-06-10  5:15 ` [PATCH 12/17] xfs: remove xlog_write_full Christoph Hellwig
2025-06-10  5:15 ` [PATCH 13/17] xfs: improve argument handling for the xlog_write helpers Christoph Hellwig
2025-06-10  5:15 ` [PATCH 14/17] xfs: remove the xlog_op_header_t typedef Christoph Hellwig
2025-06-10  5:15 ` [PATCH 15/17] xfs: remove the xfs_trans_header_t typedef Christoph Hellwig
2025-06-10  5:15 ` [PATCH 16/17] xfs: move the XLOG_REG_ constants out of xfs_log_format.h Christoph Hellwig
2025-06-10  5:15 ` [PATCH 17/17] xfs: move struct xfs_log_vec to xfs_log_priv.h Christoph Hellwig
2025-06-17 22:35 ` cleanup log item formatting Dave Chinner
2025-06-18  4:50   ` Christoph Hellwig
2025-06-18  9:24 ` Dave Chinner
2025-06-24 14:38   ` Christoph Hellwig
2025-06-19  6:58 ` Dave Chinner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.