]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxlog: don't require a libxfs_xinit structure for xlog_init
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Dec 2023 16:37:27 +0000 (17:37 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 18 Dec 2023 13:57:48 +0000 (14:57 +0100)
commitc42edb2e8d23e8ab491a15a5aa991f6c952ce474
tree3107e32cd49de19bd5aee496940333c2fa138b65
parent09746c2a714ab3575200c127c4fc3a6e9977b14a
libxlog: don't require a libxfs_xinit structure for xlog_init

xlog_init currently requires a libxfs_args structure to be passed in,
and then clobbers various log-related arguments to it.  There is no
good reason for that as all the required information can be calculated
without it.

Remove the x argument to xlog_init and xlog_is_dirty and the now unused
logBBstart member in struct libxfs_xinit.

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>
copy/xfs_copy.c
db/metadump.c
db/sb.c
include/libxfs.h
include/libxlog.h
libxfs/init.c
libxlog/util.c
logprint/logprint.c
repair/phase2.c