On Mon, Jun 03, 2019 at 07:29:33PM +0200, Christoph Hellwig wrote: > Split out a self-contained chunk of code from xlog_sync that calculates > the split offset for an iclog that wraps the log end and bumps the > cycles for the second half. > > Use the chance to bring some sanity to the variables used to track the > split in xlog_sync by not changing the count variable, and instead use > split as the offset for the split and use those to calculate the > sizes and offsets for the two write buffers. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Looks good. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx