[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <173957283076.385288.13682185243120310904.b4-ty@kernel.dk>
Date: Fri, 14 Feb 2025 15:40:30 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Caleb Sander Mateos <csander@...estorage.com>
Cc: Keith Busch <kbusch@...nel.org>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] block/merge: remove unnecessary min() with UINT_MAX
On Fri, 14 Feb 2025 12:36:36 -0700, Caleb Sander Mateos wrote:
> In bvec_split_segs(), max_bytes is an unsigned, so it must be less than
> or equal to UINT_MAX. Remove the unnecessary min().
>
> Prior to commit 67927d220150 ("block/merge: count bytes instead of
> sectors"), the min() was with UINT_MAX >> 9, so it did have an effect.
>
>
> [...]
Applied, thanks!
[1/1] block/merge: remove unnecessary min() with UINT_MAX
commit: 43c70b104093c324b1a000762ce943d16ce788f9
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists