diff options
author | Zheng Qixing <zhengqixing@huawei.com> | 2025-02-27 10:55:05 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-03-06 18:03:28 +0300 |
commit | c8775aefba959cdfbaa25408a84d3dd15bbeb991 (patch) | |
tree | 4dd0a3bb535d85f6c5666e0c064e62f7644ce337 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5236f041fa6c81c71eabad44897e54a0d6d5bbf6 (diff) | |
download | linux-c8775aefba959cdfbaa25408a84d3dd15bbeb991.tar.xz |
badblocks: return boolean from badblocks_set() and badblocks_clear()
Change the return type of badblocks_set() and badblocks_clear()
from int to bool, indicating success or failure. Specifically:
- _badblocks_set() and _badblocks_clear() functions now return
true for success and false for failure.
- All calls to these functions are updated to handle the new
boolean return type.
- This change improves code clarity and ensures a more consistent
handling of success and failure states.
Signed-off-by: Zheng Qixing <zhengqixing@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Coly Li <colyli@kernel.org>
Acked-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20250227075507.151331-11-zhengqixing@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions