diff options
author | Ryusuke Konishi <[email protected]> | 2024-08-22 00:46:26 +0900 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-09-01 20:43:39 -0700 |
commit | 0b9aad46c1634527c6a9f951f72c31be67f9b25c (patch) | |
tree | 103883d7d7f60b3d7cf77715b68f54918742e9f6 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 5b527d38644686dc11e29468463aa7affa282e31 (diff) |
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/[email protected]
Signed-off-by: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions