]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gfs2: Simplify do_promote
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 11 Aug 2025 20:34:50 +0000 (22:34 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 12 Sep 2025 10:02:45 +0000 (12:02 +0200)
commit2045364497dbb16663df0267d6f733d964f22866
tree05892d7fe7247980765fd63ef08d9b62d84f8482
parentbddb53b776fb7ce81dfba7c24884d9f2c0c68e50
gfs2: Simplify do_promote

While not immediately obvious, do_promote() returns whether or not there
are any active holders in the queue.  But the function description is
confusing, and this information is easy to come by for callers anyway,
so turn do_promote() into a void function.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Andrew Price <anprice@redhat.com>
fs/gfs2/glock.c