aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/midcomms.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-11-02 15:17:19 -0400
committerDavid Teigland <teigland@redhat.com>2021-11-02 14:39:20 -0500
commit5c16febbc19bb463bfb8e80cb5b24ec6ff1a439f (patch)
tree19ce3fbf83f58bfdd36e5069f71ca4229589736e /fs/dlm/midcomms.c
parent3cb5977c5214c219b2859f926ed547480d53fdde (diff)
downloadlinux-5c16febbc19bb463bfb8e80cb5b24ec6ff1a439f.tar.gz
fs: dlm: let handle callback data as void
This patch changes the dlm_lowcomms_new_msg() function pointer private data from "struct mhandle *" to "void *" to provide different structures than just "struct mhandle". Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/midcomms.c')
-rw-r--r--fs/dlm/midcomms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
index 76bdc3a9dc61d..95a5643a950e3 100644
--- a/fs/dlm/midcomms.c
+++ b/fs/dlm/midcomms.c
@@ -1020,8 +1020,10 @@ static void dlm_fill_opts_header(struct dlm_opts *opts, uint16_t inner_len,
header_out(&opts->o_header);
}
-static void midcomms_new_msg_cb(struct dlm_mhandle *mh)
+static void midcomms_new_msg_cb(void *data)
{
+ struct dlm_mhandle *mh = data;
+
atomic_inc(&mh->node->send_queue_cnt);
spin_lock(&mh->node->send_queue_lock);