[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ztruxbvaatkgbngjr42twcpwmsowvpvlzxls6f576nzfqs7po2@ttzbexdvps3h>
Date: Sun, 27 Apr 2025 16:50:02 -0400
From: Kent Overstreet <kent.overstreet@...ux.dev>
To: Fedor Pchelkin <pchelkin@...ras.ru>
Cc: linux-kernel@...r.kernel.org, Coly Li <colyli@...nel.org>,
Alexander Viro <viro@...iv.linux.org.uk>, Christian Brauner <brauner@...nel.org>, Jan Kara <jack@...e.cz>,
Carlos Maiolino <cem@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>,
"Darrick J. Wong" <djwong@...nel.org>, linux-bcache@...r.kernel.org, linux-bcachefs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-xfs@...r.kernel.org, lvc-project@...uxtesting.org
Subject: Re: [PATCH] sort.h: hoist cmp_int() into generic header file
On Sun, Apr 27, 2025 at 11:14:49PM +0300, Fedor Pchelkin wrote:
> Deduplicate the same functionality implemented in several places by
> moving the cmp_int() helper macro into linux/sort.h.
>
> The macro performs a three-way comparison of the arguments mostly useful
> in different sorting strategies and algorithms.
>
> Suggested-by: Darrick J. Wong <djwong@...nel.org>
> Signed-off-by: Fedor Pchelkin <pchelkin@...ras.ru>
Acked-by: Kent Overstreet <kent.overstreet@...ux.dev>
Powered by blists - more mailing lists