]> Gentwo Git Trees - linux/.git/commit
xfs: remove l_iclog_heads
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Oct 2025 07:05:55 +0000 (08:05 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 12 Nov 2025 10:09:25 +0000 (11:09 +0100)
commitbc2dd9f2ba004cb4cce671dbe62f5193f58e4abc
tree573dcede05b2f426f865a3a50116c88fbf959f8e
parentef1e275638fe6f6d54c18a770c138e4d5972b280
xfs: remove l_iclog_heads

l_iclog_heads is only used in one place and can be trivially derived
from l_iclog_hsize by a single shift operation.  Remove it, and switch
the initialization of l_iclog_hsize to use struct_size so that it is
directly derived from the on-disk format definition.

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/xfs_log.c
fs/xfs/xfs_log_priv.h