projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29464ee
)
gfs2: Make use of list_is_first
author
Andreas Gruenbacher
<agruenba@redhat.com>
Thu, 13 Jan 2022 01:54:55 +0000
(
02:54
+0100)
committer
Andreas Gruenbacher
<agruenba@redhat.com>
Tue, 15 Feb 2022 14:01:40 +0000
(15:01 +0100)
Use list_is_first() instead of open-coding it.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/glock.c
b/fs/gfs2/glock.c
index d368d9a2e8f00c277c16da9aac0f546469f74b1f..a12bb3e8cb9cb26ba7196a35c3b047d19cec8f52 100644
(file)
--- 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;