aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-10-27 16:45:17 -0400
committerDavid Teigland <teigland@redhat.com>2022-11-08 12:59:41 -0600
commitd3e4dc5d68c8fef719291cc9f3dc907aac494c55 (patch)
treed6d5cbdd44905081ff97d328d0ff51456b80a620 /fs/dlm
parent85839f27b17ddebe21d36a174050420783824ed3 (diff)
downloadlinux-d3e4dc5d68c8fef719291cc9f3dc907aac494c55.tar.gz
fs: dlm: use list_first_entry marco
Instead of using list_entry() this patch moves to using the list_first_entry() macro. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/user.c b/fs/dlm/user.c
index c5d27bccc3dc4..6a5de0918a962 100644
--- a/fs/dlm/user.c
+++ b/fs/dlm/user.c
@@ -857,7 +857,7 @@ static ssize_t device_read(struct file *file, char __user *buf, size_t count,
without removing lkb_cb_list; so empty lkb_cb_list is always
consistent with empty lkb_callbacks */
- lkb = list_entry(proc->asts.next, struct dlm_lkb, lkb_cb_list);
+ lkb = list_first_entry(&proc->asts, struct dlm_lkb, lkb_cb_list);
/* rem_lkb_callback sets a new lkb_last_cast */
old_mode = lkb->lkb_last_cast.mode;