]> www.infradead.org Git - users/dwmw2/linux.git/commit
ratelimit: Use nolock_ret label to save a couple of lines of code
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Apr 2025 19:06:43 +0000 (12:06 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 8 May 2025 23:13:27 +0000 (16:13 -0700)
commita69114c2a12c906957ddd3409af48f40e047ef53
treed55eee92c7951f8720f355b6a178fe6276027797
parentf2d0ea0f086ae8811bb957ae2f781387557f80bd
ratelimit: Use nolock_ret label to save a couple of lines of code

Create a nolock_ret label in order to start consolidating the unlocked
return paths that conditionally invoke ratelimit_state_inc_miss().

Link: https://lore.kernel.org/all/fbe93a52-365e-47fe-93a4-44a44547d601@paulmck-laptop/
Link: https://lore.kernel.org/all/20250423115409.3425-1-spasswolf@web.de/
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Kuniyuki Iwashima <kuniyu@amazon.com>
Cc: Mateusz Guzik <mjguzik@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
lib/ratelimit.c