]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_mdrestore: refactor progress printing and sb fixup code
authorDarrick J. Wong <djwong@kernel.org>
Wed, 20 Dec 2023 16:53:45 +0000 (08:53 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 22 Dec 2023 02:29:14 +0000 (18:29 -0800)
commit2cbc52f5c9a9588e1e9c8e54c0435c121424fe5a
tree618f5c43aef983d8dd56d6db7040a72ee612605b
parentabb66bd7bd856ea6c6d552f3125ea84855038123
xfs_mdrestore: refactor progress printing and sb fixup code

Now that we've fixed the dissimilarities between the two progress
printing callsites, refactor them into helpers.  Do the same for the
duplicate code that clears sb_inprogress from the primary superblock
after the copy succeeds.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mdrestore/xfs_mdrestore.c