summaryrefslogtreecommitdiffstats
path: root/fs/dlm/memory.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2024-08-02 13:26:38 -0400
committerDavid Teigland <teigland@redhat.com>2024-08-08 15:14:41 -0500
commit116978854427fd7abbeb328768e75b49a7298520 (patch)
treeabae8138a8d115851bbe040e3cc622b8765ba328 /fs/dlm/memory.h
parentde9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed (diff)
downloadlinux-116978854427fd7abbeb328768e75b49a7298520.tar.gz
linux-116978854427fd7abbeb328768e75b49a7298520.tar.bz2
linux-116978854427fd7abbeb328768e75b49a7298520.zip
dlm: cleanup memory allocation helpers
This patch removes a unnecessary parameter from DLM memory allocation helpers and reduce some functions by just directly reply the pointer address of the allocated memory. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/memory.h')
-rw-r--r--fs/dlm/memory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/memory.h b/fs/dlm/memory.h
index 15198d46b42a..551b6b788489 100644
--- a/fs/dlm/memory.h
+++ b/fs/dlm/memory.h
@@ -14,9 +14,9 @@
int dlm_memory_init(void);
void dlm_memory_exit(void);
-struct dlm_rsb *dlm_allocate_rsb(struct dlm_ls *ls);
+struct dlm_rsb *dlm_allocate_rsb(void);
void dlm_free_rsb(struct dlm_rsb *r);
-struct dlm_lkb *dlm_allocate_lkb(struct dlm_ls *ls);
+struct dlm_lkb *dlm_allocate_lkb(void);
void dlm_free_lkb(struct dlm_lkb *l);
char *dlm_allocate_lvb(struct dlm_ls *ls);
void dlm_free_lvb(char *l);