xfs: factor out the CIL transaction header building
authorDave Chinner <dchinner@redhat.com>
Thu, 21 Apr 2022 00:33:23 +0000 (10:33 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 21 Apr 2022 00:33:23 +0000 (10:33 +1000)
commit735fbf67df56f402e9baa079a5560ebe8fa049c1
treedaee5877260ac70c1d14760223d2097a069294cd
parentce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e
xfs: factor out the CIL transaction header building

It is static code deep in the middle of the CIL push logic. Factor
it out into a helper so that it is clear and easy to modify
separately.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_cil.c