aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/memory.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-10-27 16:45:22 -0400
committerDavid Teigland <teigland@redhat.com>2022-11-08 12:59:41 -0600
commite1711fe3fd59fa1e34e02add2e9c188441c12021 (patch)
tree6cabe5ace2177a4caba9dbe6b2e1399dc544bd7e /fs/dlm/memory.c
parent61bed0baa4dba17dd06cdfe20481a580718d6c7c (diff)
downloadlinux-e1711fe3fd59fa1e34e02add2e9c188441c12021.tar.gz
fs: dlm: allow different allocation context per _create_message
This patch allows to give the use control about the allocation context based on a per message basis. Currently all messages forced to be created under GFP_NOFS context. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/memory.c')
-rw-r--r--fs/dlm/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/memory.c b/fs/dlm/memory.c
index 61fe0d1f56467..eb7a08641fcf5 100644
--- a/fs/dlm/memory.c
+++ b/fs/dlm/memory.c
@@ -134,9 +134,9 @@ void dlm_free_lkb(struct dlm_lkb *lkb)
kmem_cache_free(lkb_cache, lkb);
}
-struct dlm_mhandle *dlm_allocate_mhandle(void)
+struct dlm_mhandle *dlm_allocate_mhandle(gfp_t allocation)
{
- return kmem_cache_alloc(mhandle_cache, GFP_NOFS);
+ return kmem_cache_alloc(mhandle_cache, allocation);
}
void dlm_free_mhandle(struct dlm_mhandle *mhandle)