aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2013-11-05 11:45:53 +0800
committerChris Mason <[email protected]>2013-11-20 20:42:16 -0500
commitd52c1bcc647ca41ee563bc38d8231e5f3816112c (patch)
tree2698bcd9e7271f268834108e20ecbc985d188805 /tools/perf/util/trace-event-scripting.c
parentba69994a40b242bef26ab2683ea84aa29e2e429f (diff)
Btrfs: avoid heavy operations in btrfs_commit_super
The 'git blame' history shows that, the old transaction commit code has to do twice to ensure roots are updated and we have to flush metadata and super block manually, however, right now all of these can be handled well inside the transaction commit code without extra efforts. And the error handling part remains same with the current code, -- 'return to caller once we get error'. This saves us a transaction commit and a flush of super block, which are both heavy operations according to ftrace output analysis. Signed-off-by: Liu Bo <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions