diff options
author | Zheng Qixing <zhengqixing@huawei.com> | 2025-02-27 15:55:06 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-03-06 08:03:28 -0700 |
commit | 7e5102dd99f3ad1f981671ad5b4f24ac48c568ad (patch) | |
tree | db6652b05a3e235d1c0e5e6c7d383c5eb0c4d757 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | c8775aefba959cdfbaa25408a84d3dd15bbeb991 (diff) |
md: improve return types of badblocks handling functions
rdev_set_badblocks() only indicates success/failure, so convert its return
type from int to boolean for better semantic clarity.
rdev_clear_badblocks() return value is never used by any caller, convert it
to void. This removes unnecessary value returns.
Also update narrow_write_error() in both raid1 and raid10 to use boolean
return type to match rdev_set_badblocks().
Signed-off-by: Zheng Qixing <zhengqixing@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20250227075507.151331-12-zhengqixing@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions