diff options
author | Naohiro Aota <[email protected]> | 2020-02-25 12:56:07 +0900 |
---|---|---|
committer | David Sterba <[email protected]> | 2020-03-23 17:01:48 +0100 |
commit | b25c19f49ef294865462bf741e0430c59295ac15 (patch) | |
tree | 509d733ec059d24f7838b291ee17ba229dbc2070 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 52d40aba68dcc42ba3f2846eedf9cb1c6d5ce45f (diff) |
btrfs: handle invalid profile in chunk allocation
Do not BUG_ON() when an invalid profile is passed to __btrfs_alloc_chunk().
Instead return -EINVAL with ASSERT() to catch a bug in the development
stage.
Suggested-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Naohiro Aota <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions