Skip to content
Commit 08d73666 authored by Bob Peterson's avatar Bob Peterson
Browse files

gfs2: Remove redundant check from gfs2_glock_dq



In function gfs2_glock_dq, it checks to see if this is the fast path.
Before this patch, it checked both "find_first_holder(gl) == NULL" and
list_empty(&gl->gl_holders), which is redundant. If gl_holders is empty
then find_first_holder must return NULL. This patch removes the
redundancy.

Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
parent fffe9bee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment