From: Andreas Gruenbacher Date: Thu, 13 Jan 2022 01:54:55 +0000 (+0100) Subject: gfs2: Make use of list_is_first X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5a27a43efd1d5cd55dd5988cac596bdea7294d73;p=linux.git gfs2: Make use of list_is_first Use list_is_first() instead of open-coding it. Signed-off-by: Andreas Gruenbacher --- diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index d368d9a2e8f00..a12bb3e8cb9cb 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -542,7 +542,7 @@ restart: * some reason. If this holder is the head of the list, it * 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; do_error(gl, 0); break;