From: Jyun-An Chen <jun930436@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, Jyun-An Chen <jun930436@gmail.com>
Subject: [PATCH] lib/list_sort: drop stale reference to plug_ctx_cmp()
Date: Sat, 5 Dec 2026 01:43:42 +0800 [thread overview]
Message-ID: <20261204174342.78390-1-jun930436@gmail.com> (raw)
The kernel-doc of list_sort() names plug_ctx_cmp() in block/blk-mq.c as
an example of a comparison function that returns a boolean. That
function had already been renamed to plug_rq_cmp() by commit
3110fc79606f ("blk-mq: improve plug list sorting") when the comment was
added in commit 043b3f7b6388 ("lib/list_sort: simplify and remove
MAX_LIST_LENGTH_BITS"), and plug_rq_cmp() was removed along with plug
list sorting in commit df87eb0fce8f ("block: get rid of plug list
sorting").
The multi-word example that follows already shows the boolean style, so
drop the reference instead of pointing at another caller.
Signed-off-by: Jyun-An Chen <jun930436@gmail.com>
---
lib/list_sort.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/list_sort.c b/lib/list_sort.c
index ff99203f208f..6efec1f25912 100644
--- a/lib/list_sort.c
+++ b/lib/list_sort.c
@@ -108,8 +108,7 @@ static void merge_final(void *priv, list_cmp_func_t cmp, struct list_head *head,
* This is compatible with two styles of @cmp function:
* - The traditional style which returns <0 / =0 / >0, or
* - Returning a boolean 0/1.
- * The latter offers a chance to save a few cycles in the comparison
- * (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).
+ * The latter offers a chance to save a few cycles in the comparison.
*
* A good way to write a multi-word comparison is::
*
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
reply other threads:[~2026-12-04 17:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204174342.78390-1-jun930436@gmail.com \
--to=jun930436@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox