summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2022-10-10 13:36:06 +0300
committerDavid Sterba <dsterba@suse.com>2022-10-24 16:26:54 +0300
commitf15fb2cd979a07fbfc666e2f04b8b30ec9233b2a (patch)
treed4473662322688279a1966c0ec0f3685d0c58b4b /tools/perf/scripts/python/exported-sql-viewer.py
parent4efb365a3f04d0bee7833f168b0b00a15edefeac (diff)
downloadlinux-f15fb2cd979a07fbfc666e2f04b8b30ec9233b2a.tar.xz
btrfs: raid56: properly handle the error when unable to find the missing stripe
In raid56_alloc_missing_rbio(), if we can not determine where the missing device is inside the full stripe, we just BUG_ON(). This is not necessary especially the only caller inside scrub.c is already properly checking the return value, and will treat it as a memory allocation failure. Fix the error handling by: - Add an extra warning for the reason Although personally speaking it may be better to be an ASSERT(). - Properly free the allocated rbio Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions