aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2021-03-12 15:25:28 -0500
committerDavid Sterba <[email protected]>2021-04-19 17:25:21 +0200
commit790c1b8cd477af069a93375fa268d637ef799794 (patch)
treef1e2d88522a43b4f5969efdf2e35920d2827db49 /tools/perf/scripts/python/export-to-sqlite.py
parent24cd638902d4c6b05eae958707ce01729631d012 (diff)
btrfs: do proper error handling in create_reloc_inode
We already handle some errors in this function, and the callers do the correct error handling, so clean up the rest of the function to do the appropriate error handling. There's a little extra work that needs to be done here, as we create the inode item before we create the orphan item. We could potentially add the orphan item, but if we failed to create the inode item we would have to abort the transaction. Instead add a helper to delete the inode item we created in the case that we're unable to look up the inode (this would likely be caused by an ENOMEM), which if it succeeds means we can avoid a transaction abort in this particular error case. Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions