diff options
| author | Filipe Manana <[email protected]> | 2022-05-31 16:06:41 +0100 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-07-25 17:44:35 +0200 |
| commit | 3bae13e9d42eae0fea7afd6a9aea6b4fe81770ad (patch) | |
| tree | 35b6c8428a4be346aa15f05da441988fb6f05e81 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 06ac264f3fe56daaadf0bd4fca5910859d34f611 (diff) | |
btrfs: do not BUG_ON() on failure to reserve metadata for delayed item
At btrfs_insert_delayed_dir_index(), we don't expect the metadata
reservation for the delayed dir index item insertion to fail, because the
caller is supposed to have reserved 1 unit of metadata space for that.
All callers are able to deal with an error in case that happens, so there
is no need for something so drastic as a BUG_ON() in case of failure.
Instead just emit a warning, so that's easily noticed during development
(fstests in particular), and return the error to the caller.
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Filipe Manana <[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