The patch titled Subject: binder: use of hlist_count_nodes() has been added to the -mm mm-nonmm-unstable branch. Its filename is binder-use-of-hlist_count_nodes.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/binder-use-of-hlist_count_nodes.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Pierre Gondois <pierre.gondois@xxxxxxx> Subject: binder: use of hlist_count_nodes() Date: Thu, 4 Jan 2024 17:49:34 +0100 Make use of the newly added hlist_count_nodes(). Link: https://lkml.kernel.org/r/20240104164937.424320-3-pierre.gondois@xxxxxxx Signed-off-by: Pierre Gondois <pierre.gondois@xxxxxxx> Acked-by: Carlos Llamas <cmllamas@xxxxxxxxxx> Acked-by: Marco Elver <elver@xxxxxxxxxx> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Cc: Arve Hjønnevåg <arve@xxxxxxxxxxx> Cc: Christian Brauner <brauner@xxxxxxxxxx> Cc: Coly Li <colyli@xxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Jani Nikula <jani.nikula@xxxxxxxxx> Cc: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Kent Overstreet <kent.overstreet@xxxxxxxxx> Cc: Martijn Coenen <maco@xxxxxxxxxxx> Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx> Cc: Todd Kjos <tkjos@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/android/binder.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/android/binder.c~binder-use-of-hlist_count_nodes +++ a/drivers/android/binder.c @@ -6077,9 +6077,7 @@ static void print_binder_node_nilocked(s struct binder_work *w; int count; - count = 0; - hlist_for_each_entry(ref, &node->refs, node_entry) - count++; + count = hlist_count_nodes(&node->refs); seq_printf(m, " node %d: u%016llx c%016llx hs %d hw %d ls %d lw %d is %d iw %d tr %d", node->debug_id, (u64)node->ptr, (u64)node->cookie, _ Patches currently in -mm which might be from pierre.gondois@xxxxxxx are list-add-hlist_count_nodes.patch binder-use-of-hlist_count_nodes.patch bcache-use-of-hlist_count_nodes.patch