summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2022-01-13 02:54:55 +0100
committerAndreas Gruenbacher <agruenba@redhat.com>2022-02-15 15:01:40 +0100
commit5a27a43efd1d5cd55dd5988cac596bdea7294d73 (patch)
tree86ecc87e43c2a3dbc8d4e7c474b44772fb98a68b /fs/gfs2/glock.c
parentgfs2: Switch lock order of inode and iopen glock (diff)
downloadlinux-5a27a43efd1d5cd55dd5988cac596bdea7294d73.tar.xz
linux-5a27a43efd1d5cd55dd5988cac596bdea7294d73.zip
gfs2: Make use of list_is_first
Use list_is_first() instead of open-coding it. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r--fs/gfs2/glock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index d368d9a2e8f0..a12bb3e8cb9c 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;