aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/memory.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-11-30 14:47:20 -0500
committerDavid Teigland <teigland@redhat.com>2021-12-07 12:42:26 -0600
commite4dc81ed5a8069b8ae56116058ebbad77ff559ec (patch)
treead2ceb088783ae41b0d8977222c76fc6413354e1 /fs/dlm/memory.h
parent3af2326ca0a13cf84aeb75e001e757ff3cefeae9 (diff)
downloadlinux-e4dc81ed5a8069b8ae56116058ebbad77ff559ec.tar.gz
fs: dlm: memory cache for lowcomms hotpath
This patch introduces a kmem cache for dlm_msg handles which are used always if dlm sends a message out. Even if their are covered by midcomms layer or not. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dlm/memory.h b/fs/dlm/memory.h
index 854269eacd445..7bd3f1a391ca7 100644
--- a/fs/dlm/memory.h
+++ b/fs/dlm/memory.h
@@ -24,6 +24,8 @@ struct dlm_mhandle *dlm_allocate_mhandle(void);
void dlm_free_mhandle(struct dlm_mhandle *mhandle);
struct writequeue_entry *dlm_allocate_writequeue(void);
void dlm_free_writequeue(struct writequeue_entry *writequeue);
+struct dlm_msg *dlm_allocate_msg(gfp_t allocation);
+void dlm_free_msg(struct dlm_msg *msg);
#endif /* __MEMORY_DOT_H__ */