[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250901194214.GE5333@twin.jikos.cz>
Date: Mon, 1 Sep 2025 21:42:14 +0200
From: David Sterba <dsterba@...e.cz>
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
David Sterba <dsterba@...e.com>, linux-btrfs@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] btrfs: scrub: replace max_t()/min_t() with clamp_t() in
scrub_throttle_dev_io()
On Mon, Sep 01, 2025 at 05:01:44PM +0200, Thorsten Blum wrote:
> Replace max_t() followed by min_t() with a single clamp_t(). Manually
> casting 'bwlimit / (16 * 1024 * 1024)' to u32 is also redundant when
> using max_t(u32,,) or clamp_t(u32,,) and can be removed.
>
> No functional changes intended.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
Added to for-next, thanks.
Powered by blists - more mailing lists