aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2021-05-19 17:13:15 +0000
committerDavid Sterba <[email protected]>2021-05-27 21:31:08 +0000
commit011b28acf940eb61c000059dd9e2cfcbf52ed96b (patch)
treeeb0cf73c036bf4147337824efa4edd4404f492e4 /tools/perf/scripts/python/sched-migration.py
parentbtrfs: mark ordered extent and inode with error if we fail to finish (diff)
downloadkernel-011b28acf940eb61c000059dd9e2cfcbf52ed96b.tar.gz
kernel-011b28acf940eb61c000059dd9e2cfcbf52ed96b.zip
btrfs: fixup error handling in fixup_inode_link_counts
This function has the following pattern while (1) { ret = whatever(); if (ret) goto out; } ret = 0 out: return ret; However several places in this while loop we simply break; when there's a problem, thus clearing the return value, and in one case we do a return -EIO, and leak the memory for the path. Fix this by re-arranging the loop to deal with ret == 1 coming from btrfs_search_slot, and then simply delete the ret = 0; out: bit so everybody can break if there is an error, which will allow for proper error handling to occur. CC: [email protected] # 4.4+ 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/sched-migration.py')
0 files changed, 0 insertions, 0 deletions