]> Gentwo Git Trees - linux/.git/commit
xfs: cleanup xlog_alloc_log a bit
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Oct 2025 07:05:51 +0000 (08:05 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 12 Nov 2025 10:09:25 +0000 (11:09 +0100)
commit16c18021e1f518e6ddd4ddf2b57aaca7a47a7124
tree266c0b8e4a5206d67ccb465abd6e5ac2aecc37ce
parentbe665a4e27417227cf40cfe27e616838bb46548c
xfs: cleanup xlog_alloc_log a bit

Remove the separate head variable, move the ic_datap initialization
up a bit where the context is more obvious and remove the duplicate
memset right after a zeroing memory allocation.

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