diff options
author | Ryusuke Konishi <konishi.ryusuke@gmail.com> | 2024-08-21 18:46:26 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-02 06:43:39 +0300 |
commit | 0b9aad46c1634527c6a9f951f72c31be67f9b25c (patch) | |
tree | 103883d7d7f60b3d7cf77715b68f54918742e9f6 /tools/perf/scripts/python/task-analyzer.py | |
parent | 5b527d38644686dc11e29468463aa7affa282e31 (diff) | |
download | linux-0b9aad46c1634527c6a9f951f72c31be67f9b25c.tar.xz |
nilfs2: do not propagate ENOENT error from sufile during GC
nilfs_sufile_freev(), which is used to free segments in GC, aborts with
-ENOENT if the target segment usage is on a hole block.
This error only occurs if one of the segment numbers to be freed passed by
the GC ioctl is invalid, so return -EINVAL instead.
To avoid impairing readability, introduce a wrapper function that
encapsulates error handling including the error code conversion (and error
message output).
Link: https://lkml.kernel.org/r/20240821154627.11848-5-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions