]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: move XFS_LSN_CMP to xfs_log_format.h
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Jun 2026 05:04:51 +0000 (07:04 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 12 Jun 2026 07:54:20 +0000 (09:54 +0200)
commit202ff980a464198616e53e85e5276e68c00a1031
treef19ca52573d4277e9129f8b50a13df4e2a081f68
parentf4f28ffe09248e747ffd6b752cbad0f7a34af475
xfs: move XFS_LSN_CMP to xfs_log_format.h

Because CYCLE_LSN/BLOCK_LSN are defined in xfs_log_format.h, XFS_LSN_CMP
forces a xfs_log_format.h dependency in xfs_log.h.  Move XFS_LSN_CMP
to xfs_log_format.h and drop the macro/inline indirection to clean up
our header mess a little bit.

This also helps xfsprogs, which doesn't have xfs_log.h, but needs
XFS_LSN_CMP.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/libxfs/xfs_parent.c
fs/xfs/xfs_log.h