[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z9x3JsGAOIVKuHjD@kbusch-mbp.dhcp.thefacebook.com>
Date: Thu, 20 Mar 2025 14:14:30 -0600
From: Keith Busch <kbusch@...nel.org>
To: shao.mingyin@....com.cn
Cc: hch@....de, sagi@...mberg.me, kch@...dia.com,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
yang.tao172@....com.cn, yang.yang29@....com.cn, xu.xin16@....com.cn
Subject: Re: [PATCH v2] nvmet: replace max(a, min(b, c)) by clamp(val, lo, hi)
On Thu, Mar 20, 2025 at 03:53:00PM +0800, shao.mingyin@....com.cn wrote:
> From: Li Haoran <li.haoran7@....com.cn>
>
> This patch replaces max(a, min(b, c)) by clamp(val, lo, hi) in the nvme
> driver. The clamp() macro explicitly expresses the intent of constraining
> a value within bounds, improving code readability.
Thanks, applied to nvme-6.15.
Powered by blists - more mailing lists