Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a61acc3c authored by Brian Foster's avatar Brian Foster Committed by Darrick J. Wong
Browse files

xfs: use ->t_dfops in log recovery intent processing



xlog_finish_defer_ops() processes the deferred operations collected
over the entire intent recovery sequence. We can't xfs_defer_init()
here because the dfops is already populated. Attach it manually and
eliminate the last caller of xfs_defer_finish() that doesn't pass
->t_dfops.

Signed-off-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBill O'Donnell <billodo@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 02dff7bf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4854,6 +4854,8 @@ xlog_finish_defer_ops(
			0, XFS_TRANS_RESERVE, &tp);
	if (error)
		return error;
	/* dfops is already populated so assign it manually */
	tp->t_dfops = dfops;

	error = xfs_defer_finish(&tp, dfops);
	if (error)