[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4008b6a3-bab2-4f47-a3c5-65206352e882@molgen.mpg.de>
Date: Sat, 22 Feb 2025 05:36:28 +0100
From: Paul Menzel <pmenzel@...gen.mpg.de>
To: Yu Kuai <yukuai1@...weicloud.com>,
Zheng Qixing <zhengqixing@...weicloud.com>
Cc: axboe@...nel.dk, song@...nel.org, colyli@...nel.org,
dan.j.williams@...el.com, vishal.l.verma@...el.com, dave.jiang@...el.com,
ira.weiny@...el.com, dlemoal@...nel.org, yanjun.zhu@...ux.dev,
kch@...dia.com, hare@...e.de, zhengqixing@...wei.com,
john.g.garry@...cle.com, geliang@...nel.org, xni@...hat.com,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-raid@...r.kernel.org, nvdimm@...ts.linux.dev, yi.zhang@...wei.com,
yangerkun@...wei.com, yukuai3@...wei.com
Subject: Re: [PATCH 10/12] badblocks: return boolen from badblocks_set() and
badblocks_clear()
[Remove non-working colyli@...e.de]
Am 22.02.25 um 05:32 schrieb Paul Menzel:
> Dear Zheng,
>
>
> Thank you for your patch. *boolean* in the summary/title is missing an *a*.
>
> Am 22.02.25 um 02:26 schrieb Yu Kuai:
>
>> Just two simple coding styes below.
>
> I’d put these into a separate commit.
>
>> 在 2025/02/21 16:11, Zheng Qixing 写道:
>>> From: Zheng Qixing <zhengqixing@...wei.com>
>>>
>>> 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 have been updated to handle the
>>> new boolean return type.
>
> I’d use present tense: are updated
>
>>> - This change improves code clarity and ensures a more consistent
>>> handling of success and failure states.
>>>
>>> Signed-off-by: Zheng Qixing <zhengqixing@...wei.com>
>>> ---
>>> block/badblocks.c | 37 +++++++++++++++++------------------
>>> drivers/block/null_blk/main.c | 17 ++++++++--------
>>> drivers/md/md.c | 35 +++++++++++++++++----------------
>>> drivers/nvdimm/badrange.c | 2 +-
>>> include/linux/badblocks.h | 6 +++---
>>> 5 files changed, 49 insertions(+), 48 deletions(-)
>
> […]
>
>
> Kind regards,
>
> Paul
Powered by blists - more mailing lists