]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxlog: add a helper to initialize a xlog without clobbering the x structure
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Dec 2023 16:37:26 +0000 (17:37 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 18 Dec 2023 13:57:48 +0000 (14:57 +0100)
commit09746c2a714ab3575200c127c4fc3a6e9977b14a
treede2dd578758cc59238936b79debfd6f4cf9e5de8
parent809310c4a593d0a96c48d6a3ba8f7a37bd07b15a
libxlog: add a helper to initialize a xlog without clobbering the x structure

xfsprogs has three copies of a code sequence to initialize an xlog
structure from a libxfs_init structure. Factor the code into a helper.

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>
include/libxlog.h
libxlog/util.c
logprint/logprint.c
repair/phase2.c