aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorDave Chinner <[email protected]>2022-04-21 10:35:19 +1000
committerDave Chinner <[email protected]>2022-04-21 10:35:19 +1000
commitd80fc2914f9125a723d9af7038b1592fa8d1ea96 (patch)
tree72bb8596ab7cbe80add90831a9c8dfac6d9a6099 /tools/perf/util/trace-event-scripting.c
parentc5141320c42b08b99b7c4b250ac9675d7c7ed3a7 (diff)
xfs: pass lv chain length into xlog_write()
The caller of xlog_write() usually has a close accounting of the aggregated vector length contained in the log vector chain passed to xlog_write(). There is no need to iterate the chain to calculate he length of the data in xlog_write_calculate_len() if the caller is already iterating that chain to build it. Passing in the vector length avoids doing an extra chain iteration, which can be a significant amount of work given that large CIL commits can have hundreds of thousands of vectors attached to the chain. Signed-off-by: Dave Chinner <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Chandan Babu R <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions