diff options
author | Thadeu Lima de Souza Cascardo <cascardo@igalia.com> | 2024-08-21 18:23:21 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2024-09-04 05:12:16 +0300 |
commit | cd69f8f9de280e331c9e6ff689ced0a688a9ce8f (patch) | |
tree | b28efeaf8a5da81686527f2b869a439e11b91b79 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7d2b48881877ace14ea85a7e3a17ff8f80f3d8e6 (diff) | |
download | linux-cd69f8f9de280e331c9e6ff689ced0a688a9ce8f.tar.xz |
ext4: ext4_search_dir should return a proper error
ext4_search_dir currently returns -1 in case of a failure, while it returns
0 when the name is not found. In such failure cases, it should return an
error code instead.
This becomes even more important when ext4_find_inline_entry returns an
error code as well in the next commit.
-EFSCORRUPTED seems appropriate as such error code as these failures would
be caused by unexpected record lengths and is in line with other instances
of ext4_check_dir_entry failures.
In the case of ext4_dx_find_entry, the current use of ERR_BAD_DX_DIR was
left as is to reduce the risk of regressions.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Link: https://patch.msgid.link/20240821152324.3621860-2-cascardo@igalia.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions