diff options
author | Alexander Aring <aahringo@redhat.com> | 2021-11-30 20:47:20 +0100 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-12-07 19:42:26 +0100 |
commit | e4dc81ed5a8069b8ae56116058ebbad77ff559ec (patch) | |
tree | ad2ceb088783ae41b0d8977222c76fc6413354e1 /fs/dlm/memory.h | |
parent | fs: dlm: memory cache for writequeue_entry (diff) | |
download | linux-e4dc81ed5a8069b8ae56116058ebbad77ff559ec.tar.xz linux-e4dc81ed5a8069b8ae56116058ebbad77ff559ec.zip |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dlm/memory.h b/fs/dlm/memory.h index 854269eacd44..7bd3f1a391ca 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__ */ |