Re: [PATCH] sort.h: hoist cmp_int() into generic header file
Kent Overstreet <[email protected]>
| Newsgroups | org.kernel.vger.linux-bcache,org.kernel.vger.linux-bcachefs,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-xfs |
|---|---|
| Message-ID | <ztruxbvaatkgbngjr42twcpwmsowvpvlzxls6f576nzfqs7po2@ttzbexdvps3h> |
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 <[email protected]> > Signed-off-by: Fedor Pchelkin <[email protected]> Acked-by: Kent Overstreet <[email protected]>