Commit 5a27a43e authored by Andreas Gruenbacher's avatar Andreas Gruenbacher

gfs2: Make use of list_is_first

Use list_is_first() instead of open-coding it.
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 29464ee3
...@@ -542,7 +542,7 @@ __acquires(&gl->gl_lockref.lock) ...@@ -542,7 +542,7 @@ __acquires(&gl->gl_lockref.lock)
* some reason. If this holder is the head of the list, it * some reason. If this holder is the head of the list, it
* means we have a blocked holder at the head, so return 1. * means we have a blocked holder at the head, so return 1.
*/ */
if (gh->gh_list.prev == &gl->gl_holders) if (list_is_first(&gh->gh_list, &gl->gl_holders))
return 1; return 1;
do_error(gl, 0); do_error(gl, 0);
break; break;
......
Markdown is supported
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