]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Remove redundant check from gfs2_glock_dq
authorBob Peterson <rpeterso@redhat.com>
Mon, 2 Aug 2021 14:08:51 +0000 (09:08 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 20 Aug 2021 14:03:46 +0000 (09:03 -0500)
commitf9a0fb8896dc0d3a3bd342cf71d82606e694e8f6
treeb71b66b7535da70a729c1ca16ebe7117bbb379bb
parent19d337c938e69a1824101dcdf9f562be5c23cb36
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: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c