Skip to content

Commit 5a27a43

Browse files
author
Andreas Gruenbacher
committed
gfs2: Make use of list_is_first
Use list_is_first() instead of open-coding it. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 29464ee commit 5a27a43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/gfs2/glock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ __acquires(&gl->gl_lockref.lock)
542542
* some reason. If this holder is the head of the list, it
543543
* means we have a blocked holder at the head, so return 1.
544544
*/
545-
if (gh->gh_list.prev == &gl->gl_holders)
545+
if (list_is_first(&gh->gh_list, &gl->gl_holders))
546546
return 1;
547547
do_error(gl, 0);
548548
break;

0 commit comments

Comments
 (0)