aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-28 19:27:22 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-06-28 19:27:22 -0700
commit5693384805ab2a3d474efccb968e32f9e2edbaf7 (patch)
tree1edc11c54c1d8144d41d04cefc44b6dc77754aad /tools/perf/scripts/python/export-to-postgresql.py
parentxfs: factor out log buffer writing from xlog_sync (diff)
downloadlinux-dev-5693384805ab2a3d474efccb968e32f9e2edbaf7.tar.xz
linux-dev-5693384805ab2a3d474efccb968e32f9e2edbaf7.zip
xfs: factor out splitting of an iclog from xlog_sync
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@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions