On Mon, Mar 16, 2020 at 03:42:20PM +0100, Christoph Hellwig wrote: > xlog_cil_push is only called by xlog_cil_push_work, so merge the two > functions. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > --- > fs/xfs/xfs_log_cil.c | 46 +++++++++++++++++--------------------------- > 1 file changed, 18 insertions(+), 28 deletions(-) > > diff --git a/fs/xfs/xfs_log_cil.c b/fs/xfs/xfs_log_cil.c > index 48435cf2aa16..6a6278b8eb2d 100644 > --- a/fs/xfs/xfs_log_cil.c > +++ b/fs/xfs/xfs_log_cil.c > @@ -626,24 +626,26 @@ xlog_cil_process_committed( > } > > /* > - * Push the Committed Item List to the log. If @push_seq flag is zero, then it > - * is a background flush and so we can chose to ignore it. Otherwise, if the > - * current sequence is the same as @push_seq we need to do a flush. If > - * @push_seq is less than the current sequence, then it has already been > + * Push the Committed Item List to the log. > + * > + * If the current sequence is the same as xc_push_seq we need to do a flush. If > + * xc_push_seq is less than the current sequence, then it has already been > * flushed and we don't need to do anything - the caller will wait for it to > * complete if necessary. > * > - * @push_seq is a value rather than a flag because that allows us to do an > - * unlocked check of the sequence number for a match. Hence we can allows log > - * forces to run racily and not issue pushes for the same sequence twice. If we > - * get a race between multiple pushes for the same sequence they will block on > - * the first one and then abort, hence avoiding needless pushes. > + * xc_push_seq is checked unlocked against the sequence number for a match. > + * Hence we can allows log forces to run racily and not issue pushes for the ^^^^^^ allow > + * same sequence twice. If we get a race between multiple pushes for the same > + * sequence they will block on the first one and then abort, hence avoiding > + * needless pushes. Otherwise looks ok. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx