On Mon, May 04, 2020 at 06:12:53PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > During recovery, every intent that we recover from the log has to be > added to the AIL. Replace the open-coded addition with a helper. > > Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > Reviewed-by: Christoph Hellwig <hch@xxxxxx> Second thoughts: given that the helper is totally generic, maybe name it xfs_trans_ail_insert and keep it in the generic AIL code?